diff --git a/profiles/user0/files/misc/justfile.nix b/profiles/user0/files/misc/justfile.nix index a6997e2..6202e5e 100755 --- a/profiles/user0/files/misc/justfile.nix +++ b/profiles/user0/files/misc/justfile.nix @@ -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;