Compare commits

...

2 Commits

Author SHA1 Message Date
8a987487d1
test 2024-08-04 15:44:57 +02:00
af9459ba81
miner installer 2024-08-04 15:34:50 +02:00
2 changed files with 5 additions and 3 deletions

View File

@ -21,4 +21,4 @@ generate format="install-iso" config="install-iso":
nix shell nixpkgs#nixos-generators --command nixos-generate -f {{format}} --flake ./#{{config}}
vps:
nixos-rebuild switch --flake ./#vps --target-host root@10.0.0.1
nixos-rebuild switch --flake ./#mailserver --target-host root@10.0.0.1

View File

@ -13,16 +13,18 @@ let
modules = [ hardware ] ++ modules;
});
novaConfig = mods: configWithModules { hardware = hardwareConfigurations.nova; modules = essential ++ desktop ++ mods; };
installer = conf: conf // { hardware = import /mnt/etc/nixos/hardware-configuration.nix; };
in
{
flake.nixosConfigurations = {
flake.nixosConfigurations = rec {
nova = novaConfig [ mods.ivand ];
nova-music = novaConfig (with mods; [ ivand music ]);
nova-crypto = novaConfig (with mods; [ ivand cryptocurrency ]);
nova-nonya = novaConfig (with mods; [ ivand anon cryptocurrency ]);
nova-ai = novaConfig (with mods; [ ivand ai ]);
install-iso = configWithModules { modules = (with mods; [ grub base shell wireless ]); };
vps = configWithModules { modules = (with mods; [ base shell security vps ]); };
mailserver = configWithModules { modules = (with mods; [ base shell security vps ]); };
stara-miner = configWithModules { modules = (with mods; [ base shell security monero-miner ]); };
stara-miner-installer = installer stara-miner;
};
}