Split off nix related configuration

This commit is contained in:
James Patrick 2022-08-13 23:12:46 -04:00
parent 7d86731622
commit 81e3859336
2 changed files with 18 additions and 16 deletions

18
modules/system/nix.nix Normal file
View File

@ -0,0 +1,18 @@
{ config, lib, pkgs, ... }: {
nix = {
settings = {
auto-optimise-store = true;
allowed-users = [ "@wheel" ];
};
gc = {
automatic = true;
dates = "daily";
};
package = pkgs.nixUnstable;
extraOptions = ''
experimental-features = nix-command flakes
'';
};
nixpkgs.config.allowUnfree = true;
}

View File

@ -8,22 +8,6 @@ in {
#../modules/system/xdg.nix
];
# Allow Cleanup, nix, & flakes
nix = {
settings = {
auto-optimise-store = true;
allowed-users = [ "@wheel" ];
};
gc = {
automatic = true;
dates = "daily";
};
package = pkgs.nixUnstable;
extraOptions = ''
experimental-features = nix-command flakes
'';
};
nixpkgs.config.allowUnfree = true;
# Locale
time.timeZone = "America/New_York";