aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--flake/nixosConfigurations/default.nix1
-rw-r--r--services/nix/default.nix11
2 files changed, 7 insertions, 5 deletions
diff --git a/flake/nixosConfigurations/default.nix b/flake/nixosConfigurations/default.nix
index 5def122e..d5ba47a8 100644
--- a/flake/nixosConfigurations/default.nix
+++ b/flake/nixosConfigurations/default.nix
@@ -46,6 +46,7 @@
# inputs.impermanence.nixosModules.home-manager.impermanence
homeManagerConfig
+
];
in {
tiamat = inputs.nixpkgs.lib.nixosSystem {
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;
};
};
}