test: trying out a different justfile

This commit is contained in:
Nick 2025-11-16 01:09:16 -06:00
parent c8dea6ed84
commit e3b7ab1100

View file

@ -10,15 +10,15 @@ let
hostname = config.networking.hostName;
dotPath = "~/projects/dotfiles";
mkLocalRebuild = type: ''
rebuild-${type}:
${type}-rebuild:
nixos-rebuild ${type} --sudo --flake ${dotPath}#${hostname} --show-trace
'';
mkRemoteRebuild = name: ip: ''
rebuild-${name}:
${name}-rebuild:
nixos-rebuild switch --flake ${dotPath}#${name} --target-host ${ip} --sudo --ask-sudo-password --show-trace
'';
mkSshCommands = name: ip: ''
${name}:
${name}-ssh:
ssh ${ip}
'';
mkMicrVMSshCommands = name: ssh: ''
@ -33,7 +33,6 @@ let
(command devices.mars.name devices.mars.ip.address0)
(command devices.deimos.name devices.deimos.ip.address0)
(command devices.phobos.name devices.phobos.ip.address0)
(command devices.lamdagibson.name devices.lamdagibson.ip.address0)
];
instanceRecords =
command: