mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 05:27:13 -06:00
feat: added midnight miner
This commit is contained in:
parent
5079270f78
commit
344798ce81
1 changed files with 5 additions and 5 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue