miner installer

This commit is contained in:
Ivan Kirilov Dimitrov 2024-08-04 15:34:50 +02:00
parent 76266ac03e
commit af9459ba81
No known key found for this signature in database
GPG Key ID: 0BDAD4B211C49294
2 changed files with 6 additions and 4 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 = config: config // { 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 ]); };
stara-miner = configWithModules { modules = (with mods; [ base shell security monero-miner ]); };
mailserver = configWithModules { modules = (with mods; [ base shell security vps ]); };
stara-miner = configWithModules { hardware = import /etc/nixos/hardware-configuration.nix; modules = (with mods; [ base shell security monero-miner ]); };
stara-miner-installer = installer stara-miner;
};
}