feat: added midnight miner

This commit is contained in:
Nick 2025-11-13 20:09:28 -06:00
parent 5079270f78
commit 344798ce81

View file

@ -11,7 +11,7 @@ let
dotPath = "~/projects/dotfiles"; dotPath = "~/projects/dotfiles";
mkLocalRebuild = type: '' mkLocalRebuild = type: ''
rebuild-${type}: rebuild-${type}:
nixos-rebuild boot --sudo --flake ${dotPath}#${hostname} --show-trace nixos-rebuild ${type} --sudo --flake ${dotPath}#${hostname} --show-trace
''; '';
mkRemoteRebuild = name: ip: '' mkRemoteRebuild = name: ip: ''
rebuild-${name}: rebuild-${name}:
@ -40,16 +40,16 @@ let
lib.concatStrings [ lib.concatStrings [
(command instances.vaultwarden.name instances.vaultwarden.interface.ssh) (command instances.vaultwarden.name instances.vaultwarden.interface.ssh)
(command instances.jellyfin.name instances.jellyfin.interface.ssh) (command instances.jellyfin.name instances.jellyfin.interface.ssh)
(command instances.firefly-iii.name instances.firefly-iii.interface.ssh)
(command instances.forgejo.name instances.forgejo.interface.ssh) (command instances.forgejo.name instances.forgejo.interface.ssh)
(command instances.firefly-iii.name instances.firefly-iii.interface.ssh)
(command instances.mastodon.name instances.mastodon.interface.ssh) (command instances.mastodon.name instances.mastodon.interface.ssh)
]; ];
typeLabels = typeLabels =
type: type:
lib.concatStrings [ lib.concatStrings [
"switch" (type "switch")
"build" (type "build")
"boot" (type "boot")
]; ];
localRebuild = typeLabels mkLocalRebuild; localRebuild = typeLabels mkLocalRebuild;
remoteRebuild = systemRecords mkRemoteRebuild; remoteRebuild = systemRecords mkRemoteRebuild;