From 71226ec478b71daf6a0e7d151514083feb1ca18f Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Sun, 26 Jan 2025 15:38:38 -0600 Subject: templates: add 'system-flake' template --- templates/system-flake/pkgs/config/default.nix | 5 +++++ templates/system-flake/pkgs/config/unfree.nix | 7 +++++++ 2 files changed, 12 insertions(+) create mode 100644 templates/system-flake/pkgs/config/default.nix create mode 100644 templates/system-flake/pkgs/config/unfree.nix (limited to 'templates/system-flake/pkgs/config') diff --git a/templates/system-flake/pkgs/config/default.nix b/templates/system-flake/pkgs/config/default.nix new file mode 100644 index 0000000..395d35d --- /dev/null +++ b/templates/system-flake/pkgs/config/default.nix @@ -0,0 +1,5 @@ +lib: +with lib; { + android_sdk.accept_license = true; + allowUnfreePredicate = pkg: import ./unfree.nix lib (getName pkg); +} diff --git a/templates/system-flake/pkgs/config/unfree.nix b/templates/system-flake/pkgs/config/unfree.nix new file mode 100644 index 0000000..deda971 --- /dev/null +++ b/templates/system-flake/pkgs/config/unfree.nix @@ -0,0 +1,7 @@ +lib: name: +with lib; + elem name [ + "libproprietary-v3" + "closed-source-pkg" + "favorite-abandonware" + ] -- cgit v1.2.3