Update
This commit is contained in:
@@ -23,6 +23,10 @@ let
|
||||
sudo /run/current-system/bin/switch-to-configuration boot
|
||||
'';
|
||||
|
||||
nixy-push = pkgs.writeShellScriptBin "nixy-push" ''
|
||||
cd ~/.config/nixos && git add . && git commit -m ''${1:-Update} && git push
|
||||
'';
|
||||
|
||||
heaven-rebuild = pkgs.writeShellScriptBin "heaven-rebuild" ''
|
||||
sudo nixos-rebuild switch --flake ${homedir}/.config/nixos#heaven
|
||||
'';
|
||||
@@ -44,7 +48,7 @@ let
|
||||
'';
|
||||
|
||||
remote-rebuild = pkgs.writeShellScriptBin "remote-rebuild" ''
|
||||
ssh heaven "cd ~/.config/nixos && git pull && heaven-rebuild"
|
||||
ssh -t heaven "cd ~/.config/nixos && git pull && heaven-rebuild"
|
||||
'';
|
||||
|
||||
in {
|
||||
@@ -54,6 +58,7 @@ in {
|
||||
nixy-update
|
||||
nixy-gc
|
||||
nixy-cb
|
||||
nixy-push
|
||||
heaven-rebuild
|
||||
heaven-upgrade
|
||||
heaven-update
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
secrets = {
|
||||
gts = { path = "/home/hadi/.ssh/github"; };
|
||||
sshconfigheaven = { path = "/home/hadi/.ssh/config"; };
|
||||
nextcloudpwd = { path = "/home/hadi/nextcloud/pwd"; };
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user