about summary refs log tree commit diff stats
path: root/services
diff options
context:
space:
mode:
Diffstat (limited to 'services')
-rw-r--r--services/nix/default.nix11
1 files changed, 6 insertions, 5 deletions
diff --git a/services/nix/default.nix b/services/nix/default.nix
index b86e46fe..15c3a026 100644
--- a/services/nix/default.nix
+++ b/services/nix/default.nix
@@ -2,10 +2,15 @@
   config,
   lib,
   pkgs,
-  inputs,
+  nixpkgs,
   ...
 }: {
   nix = {
+    # Flakes settings
+    package = pkgs.nixVersions.stable;
+    # this can't be in nix settings because of some "type error". See:
+    # https://discourse.nixos.org/t/flakes-error-error-attribute-outpath-missing/18044
+    registry.nixpkgs.flake = nixpkgs;
     gc = {
       automatic = true;
       dates = "weekly";
@@ -18,10 +23,6 @@
 
       keep-failed = true; #keep failed tmp build dirs
       pure-eval = true; # restrict file system and network access to  hash
-
-      # Flakes settings
-      package = pkgs.nixVersions.stable;
-      registry.nixpkgs.flake = inputs.nixpkgs;
     };
   };
 }