fixing/updating scripts

This commit is contained in:
serenity-F 2024-11-15 16:52:40 +10:00
parent 019feb407e
commit 4e9a43496f
No known key found for this signature in database

View file

@ -7,9 +7,7 @@ let
#hostname = config.system.nixos.distroId;
nixsyu = pkgs.writeShellScriptBin "nixsyu" ''
cd {$homedir}/flakes/nixdots/ && sudo nix flake update &&
sudo nixos-rebuild switch --upgrade-all --flake {$homedir}/flakes/nixdots#{$hostname} --show-trace
&& sudo nix-collect-garbage -d && sudo nix-store --optimise
cd {$homedir}/flakes/nixdots && sudo nix flake update && sudo nixos-rebuild switch --upgrade-all --flake {$homedir}/flakes/nixdots#{$hostname} --show-trace && sudo nix-collect-garbage -d && sudo nix-store --optimise
'';
nixrb = pkgs.writeShellScriptBin "nixrb" ''
@ -37,7 +35,7 @@ let
'';
nixe = pkgs.writeShellScriptBin "nixe" ''
$EDITOR {$homedir}/flakes/nixdots/
$EDITOR {$homedir}/flakes/nixdots
'';
in {