chore: reverted justfile

This commit is contained in:
Nick 2025-11-19 17:00:17 -06:00
parent 68eaa6ec61
commit 9ddd247175

View file

@ -9,16 +9,16 @@ let
inherit (flake.config.services) instances; inherit (flake.config.services) instances;
hostname = config.networking.hostName; hostname = config.networking.hostName;
dotPath = "~/projects/dotfiles"; dotPath = "~/projects/dotfiles";
mkLocalRebuild = type: '' mkLocalRebuild = ''
${type}-rebuild: rebuild:
nixos-rebuild ${type} --sudo --flake ${dotPath}#${hostname} --show-trace nixos-rebuild switch --sudo --flake ${dotPath}#${hostname} --show-trace
''; '';
mkRemoteRebuild = name: ip: '' mkRemoteRebuild = name: ip: ''
${name}-rebuild: rebuild-${name}:
nixos-rebuild switch --flake ${dotPath}#${name} --target-host ${ip} --sudo --ask-sudo-password --show-trace nixos-rebuild switch --flake ${dotPath}#${name} --target-host ${ip} --sudo --ask-sudo-password --show-trace
''; '';
mkSshCommands = name: ip: '' mkSshCommands = name: ip: ''
${name}-ssh: ${name}:
ssh ${ip} ssh ${ip}
''; '';
mkMicrVMSshCommands = name: ssh: '' mkMicrVMSshCommands = name: ssh: ''
@ -43,14 +43,7 @@ let
(command instances.firefly-iii.name instances.firefly-iii.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 = localRebuild = mkLocalRebuild;
type:
lib.concatStrings [
(type "switch")
(type "build")
(type "boot")
];
localRebuild = typeLabels mkLocalRebuild;
remoteRebuild = systemRecords mkRemoteRebuild; remoteRebuild = systemRecords mkRemoteRebuild;
sshCommand = systemRecords mkSshCommands; sshCommand = systemRecords mkSshCommands;
microVMSshCommand = instanceRecords mkMicrVMSshCommands; microVMSshCommand = instanceRecords mkMicrVMSshCommands;