about summary refs log tree commit diff stats
path: root/modules/system/nixpkgs/config.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-05-24 14:00:43 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-05-24 14:00:43 +0200
commit3f9e7bb4f24350e906d54ad634a50f7cc56282db (patch)
tree492fe6cd80c1f4204bed9c47f1ac181c1fd30176 /modules/system/nixpkgs/config.nix
parentfix(modules/system/networking): Enforce mutually exclusivity between networkd... (diff)
downloadnixos-config-3f9e7bb4f24350e906d54ad634a50f7cc56282db.tar.gz
nixos-config-3f9e7bb4f24350e906d54ad634a50f7cc56282db.zip
fix(modules/system/nixpkgs): Remove duplicated `config` attr name
Diffstat (limited to 'modules/system/nixpkgs/config.nix')
-rw-r--r--modules/system/nixpkgs/config.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/modules/system/nixpkgs/config.nix b/modules/system/nixpkgs/config.nix
new file mode 100644
index 00000000..1a24444d
--- /dev/null
+++ b/modules/system/nixpkgs/config.nix
@@ -0,0 +1,28 @@
+{
+  cfg,
+  myPkgs,
+  lib,
+  ...
+}: let
+  myPkgsOverlay = self: super: myPkgs;
+in {
+  nixpkgs = {
+    hostPlatform = cfg.systemName;
+
+    overlays = [
+      myPkgsOverlay
+    ];
+
+    config = {
+      # TODO: this fails because of the root tempsize, which should be increased
+      # contentAddressedByDefault = true;
+
+      hostSystem = cfg.systemName;
+
+      allowUnfreePredicate = pkg:
+        builtins.elem (lib.getName pkg) [
+          "pypemicro" # required by pynitrokey
+        ];
+    };
+  };
+}