diff --git a/Justfile b/Justfile index ed1c81b..c9337f9 100644 --- a/Justfile +++ b/Justfile @@ -32,7 +32,7 @@ ai: doas nixos-rebuild switch --flake ./#ai installer-iso: - nix shell nixpkgs#nixos-generators --command nixos-generate -f install-iso --flake ./#nixos + nix shell nixpkgs#nixos-generators --command nixos-generate -f install-iso --flake ./#installer-iso vps: nixos-rebuild switch --flake ./#vps --target-host root@10.0.0.1 diff --git a/nixos/configs/default.nix b/nixos/configs/default.nix index 980f3d1..3f68139 100644 --- a/nixos/configs/default.nix +++ b/nixos/configs/default.nix @@ -5,7 +5,7 @@ let hardwareConfigurations = toplevel.config.flake.hardwareConfigurations; essential = with mods; [ grub base shell security wireless wireguard ]; desktop = with mods; [ sound wayland ]; - configWithModules = { hardware, modules }: withSystem system (ctx@{ config, inputs', pkgs, ... }: inputs.nixpkgs.lib.nixosSystem { + configWithModules = { hardware ? { nixpkgs.hostPlatform = system; }, modules }: withSystem system (ctx@{ config, inputs', pkgs, ... }: inputs.nixpkgs.lib.nixosSystem { specialArgs = { inherit inputs inputs' pkgs; packages = config.packages; @@ -20,7 +20,7 @@ in music = novaConfig (with mods; [ music ivand ]); nonya = novaConfig (with mods; [ anon cryptocurrency ivand ]); ai = novaConfig (with mods; [ ai ivand ]); - installer-iso = configWithModules { hardware = { }; modules = (with mods; [ grub base shell wireless ]); }; - vps = configWithModules { hardware = { nixpkgs.hostPlatform = system; }; modules = (with mods; [ base shell security vps ]); }; + installer-iso = configWithModules { modules = (with mods; [ grub base shell wireless ]); }; + vps = configWithModules { modules = (with mods; [ base shell security vps ]); }; }; }