mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 05:27:13 -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;
|
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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue