Forcing unstable does not work well with setting nix paths, separate that into its own nix file

This commit is contained in:
Jimbo 2024-09-03 01:01:58 -04:00
parent 66bfbba1f3
commit 1b8721c683
5 changed files with 24 additions and 19 deletions

View file

@ -24,21 +24,6 @@
};
};
# This will add each flake input as a registry
# To make nix commands consistent with your flake
nix.registry = (lib.mapAttrs (_: flake: {inherit flake;})) ((lib.filterAttrs (_: lib.isType "flake")) inputs);
# This will additionally add your inputs to the system's legacy channels
# Making legacy nix commands consistent as well, awesome!
nix.nixPath = ["/etc/nix/path"];
environment.etc =
lib.mapAttrs'
(name: value: {
name = "nix/path/${name}";
value.source = value.flake;
})
config.nix.registry;
# Enable flakes and garbage collection
nix = {
settings = {
@ -50,8 +35,10 @@
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 14d";
options = "--delete-older-than 1w"
};
# You can also manually optimize the store via nix-store --optimise
settings.auto-optimise-store = true;
};
# Set timezone