summary refs log tree commit diff stats
path: root/modules/configuration
diff options
context:
space:
mode:
Diffstat (limited to 'modules/configuration')
-rw-r--r--modules/configuration/nix.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/configuration/nix.nix b/modules/configuration/nix.nix
index 504942e..bed00b7 100644
--- a/modules/configuration/nix.nix
+++ b/modules/configuration/nix.nix
@@ -13,11 +13,18 @@
     };
   };
 
+  nixpkgs.config = {
+    packageOverrides = pkgs: {
+      unstable = import <nixos-unstable> {
+        config = config.nixpkgs.config;
+      };
+    };
+  };
+
   system.autoUpgrade = {
     enable = true;
   };
   systemd.services.nixos-upgrade = {
-    environment.NIXPKGS_ALLOW_UNFREE = "1";
     script = ''
       ${config.system.build.nixos-rebuild}/bin/nixos-rebuild boot ${toString config.system.autoUpgrade.flags}
     '';