mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-06 21:17:14 -06:00
chore: reverted justfile
This commit is contained in:
parent
68eaa6ec61
commit
9ddd247175
1 changed files with 6 additions and 13 deletions
|
|
@ -9,16 +9,16 @@ let
|
|||
inherit (flake.config.services) instances;
|
||||
hostname = config.networking.hostName;
|
||||
dotPath = "~/projects/dotfiles";
|
||||
mkLocalRebuild = type: ''
|
||||
${type}-rebuild:
|
||||
nixos-rebuild ${type} --sudo --flake ${dotPath}#${hostname} --show-trace
|
||||
mkLocalRebuild = ''
|
||||
rebuild:
|
||||
nixos-rebuild switch --sudo --flake ${dotPath}#${hostname} --show-trace
|
||||
'';
|
||||
mkRemoteRebuild = name: ip: ''
|
||||
${name}-rebuild:
|
||||
rebuild-${name}:
|
||||
nixos-rebuild switch --flake ${dotPath}#${name} --target-host ${ip} --sudo --ask-sudo-password --show-trace
|
||||
'';
|
||||
mkSshCommands = name: ip: ''
|
||||
${name}-ssh:
|
||||
${name}:
|
||||
ssh ${ip}
|
||||
'';
|
||||
mkMicrVMSshCommands = name: ssh: ''
|
||||
|
|
@ -43,14 +43,7 @@ let
|
|||
(command instances.firefly-iii.name instances.firefly-iii.interface.ssh)
|
||||
(command instances.mastodon.name instances.mastodon.interface.ssh)
|
||||
];
|
||||
typeLabels =
|
||||
type:
|
||||
lib.concatStrings [
|
||||
(type "switch")
|
||||
(type "build")
|
||||
(type "boot")
|
||||
];
|
||||
localRebuild = typeLabels mkLocalRebuild;
|
||||
localRebuild = mkLocalRebuild;
|
||||
remoteRebuild = systemRecords mkRemoteRebuild;
|
||||
sshCommand = systemRecords mkSshCommands;
|
||||
microVMSshCommand = instanceRecords mkMicrVMSshCommands;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue