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;
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;