summaryrefslogtreecommitdiff
path: root/templates/system-flake/pkgs/config
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2025-01-26 15:38:38 -0600
committerAlejandro Soto <alejandro@34project.org>2025-01-26 15:42:00 -0600
commit71226ec478b71daf6a0e7d151514083feb1ca18f (patch)
treebc627785e7ad45a10b1ccc9d2c116d8412f576d4 /templates/system-flake/pkgs/config
parent38c2e6d4c7bb4d78cf4c2069a7a22dac7ed00352 (diff)
templates: add 'system-flake' template
Diffstat (limited to 'templates/system-flake/pkgs/config')
-rw-r--r--templates/system-flake/pkgs/config/default.nix5
-rw-r--r--templates/system-flake/pkgs/config/unfree.nix7
2 files changed, 12 insertions, 0 deletions
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"
+ ]