slightly tweaked home/scripts
This commit is contained in:
parent
6378d89214
commit
eb37dc4b82
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
hostname = config.system.nixos.distroId;
|
hostname = "${config.networking.hostName}";
|
||||||
|
|
||||||
nixsyu = pkgs.writeShellScriptBin "nixsyu" ''
|
nixsyu = pkgs.writeShellScriptBin "nixsyu" ''
|
||||||
cd ${flakePath} && sudo nix flake update && sudo nixos-rebuild switch --upgrade-all --flake .#${hostname} --show-trace && sudo nix-collect-garbage -d && sudo nix-store --optimise
|
cd ${flakePath} && sudo nix flake update && sudo nixos-rebuild switch --upgrade-all --flake .#${hostname} --show-trace && sudo nix-collect-garbage -d && sudo nix-store --optimise
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue