diff --git a/configuration.nix b/configuration.nix index 4d93b06..bcf98f0 100644 --- a/configuration.nix +++ b/configuration.nix @@ -200,23 +200,3 @@ # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). system.stateVersion = "22.05"; # Did you read the comment? - -##### nix extra options ####### - - nix = { - extraOptions = '' - experimental-features = nix-command flakes - keep-outputs = true - keep-derivations = true - ''; -# package = pkgs.nixFlakes; - gc = { - automatic = true; - dates = "weekly"; - options = "--delete-older-than 7d"; - persistent = true; - }; - autoOptimiseStore = true; - }; - -} diff --git a/extra-nixos.nix b/extra-nixos.nix new file mode 100644 index 0000000..eb08e10 --- /dev/null +++ b/extra-nixos.nix @@ -0,0 +1,23 @@ +{ config, pkgs, ... }: +{ + +##### nix extra options ####### + + nix = { + extraOptions = '' + experimental-features = nix-command flakes + keep-outputs = true + keep-derivations = true + ''; +# package = pkgs.nixFlakes; + gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 7d"; + persistent = true; + }; + settings.auto-optimize-store = true; + }; +} + +} \ No newline at end of file