diff --git a/flake.nix b/flake.nix index eed2f04..0fd8143 100644 --- a/flake.nix +++ b/flake.nix @@ -26,3 +26,5 @@ ]; }; } + +# vim:expandtab ts=2 sw=2 diff --git a/misc/flake.nix b/misc/flake.nix index 7cefbee..b1278d5 100644 --- a/misc/flake.nix +++ b/misc/flake.nix @@ -34,22 +34,10 @@ user-config.baseModules ++ localModules ++ [ (import "${inputs.user-config}/system/z13.nix") ]; }; - "vmnyx" = user-config.inputs.nixpkgs.lib.nixosSystem { + "wslnix" = user-config.inputs.nixpkgs.lib.nixosSystem { system = user-config.system; specialArgs = { - hostName = "vmnyx"; - stateVersion = user-config.stateVersion; - system = user-config.system; - inputs = user-config.inputs; - }; - modules = - user-config.baseModules ++ localModules ++ [ (import "${inputs.user-config}/system/vm.nix") ]; - }; - - "nixos" = user-config.inputs.nixpkgs.lib.nixosSystem { - system = user-config.system; - specialArgs = { - hostName = "nixos"; + hostName = "wslnix"; stateVersion = user-config.stateVersion; system = user-config.system; inputs = user-config.inputs; @@ -60,3 +48,5 @@ }; }; } + +# vim:expandtab ts=2 sw=2 diff --git a/src/base.nix b/src/base.nix index 9b5e273..6321fb7 100644 --- a/src/base.nix +++ b/src/base.nix @@ -15,10 +15,14 @@ with lib; imports = [ (import ./users.nix) ]; nix = { - settings.experimental-features = mkDefault [ - "nix-command" - "flakes" - ]; + optimise.automatic = mkDefault true; + settings = { + auto-optimise-store = mkDefault true; + experimental-features = mkDefault [ + "nix-command" + "flakes" + ]; + }; }; documentation.nixos.enable = mkDefault false;