default host platform
This commit is contained in:
parent
13ca2bc6c5
commit
0bd094330d
2
Justfile
2
Justfile
@ -32,7 +32,7 @@ ai:
|
|||||||
doas nixos-rebuild switch --flake ./#ai
|
doas nixos-rebuild switch --flake ./#ai
|
||||||
|
|
||||||
installer-iso:
|
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:
|
vps:
|
||||||
nixos-rebuild switch --flake ./#vps --target-host root@10.0.0.1
|
nixos-rebuild switch --flake ./#vps --target-host root@10.0.0.1
|
||||||
|
@ -5,7 +5,7 @@ let
|
|||||||
hardwareConfigurations = toplevel.config.flake.hardwareConfigurations;
|
hardwareConfigurations = toplevel.config.flake.hardwareConfigurations;
|
||||||
essential = with mods; [ grub base shell security wireless wireguard ];
|
essential = with mods; [ grub base shell security wireless wireguard ];
|
||||||
desktop = with mods; [ sound wayland ];
|
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 = {
|
specialArgs = {
|
||||||
inherit inputs inputs' pkgs;
|
inherit inputs inputs' pkgs;
|
||||||
packages = config.packages;
|
packages = config.packages;
|
||||||
@ -20,7 +20,7 @@ in
|
|||||||
music = novaConfig (with mods; [ music ivand ]);
|
music = novaConfig (with mods; [ music ivand ]);
|
||||||
nonya = novaConfig (with mods; [ anon cryptocurrency ivand ]);
|
nonya = novaConfig (with mods; [ anon cryptocurrency ivand ]);
|
||||||
ai = novaConfig (with mods; [ ai ivand ]);
|
ai = novaConfig (with mods; [ ai ivand ]);
|
||||||
installer-iso = configWithModules { hardware = { }; modules = (with mods; [ grub base shell wireless ]); };
|
installer-iso = configWithModules { modules = (with mods; [ grub base shell wireless ]); };
|
||||||
vps = configWithModules { hardware = { nixpkgs.hostPlatform = system; }; modules = (with mods; [ base shell security vps ]); };
|
vps = configWithModules { modules = (with mods; [ base shell security vps ]); };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user