summaryrefslogtreecommitdiff
path: root/templates/system-flake/pkgs/config
diff options
context:
space:
mode:
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"
+ ]