tweaked home/scripts

This commit is contained in:
serenity-F 2024-12-27 01:46:44 +10:00
parent 8500c1e4a6
commit 1795a4ba02
2 changed files with 1 additions and 5 deletions

View file

@ -1,9 +1,6 @@
{ pkgs, hostname, flakePath, ... }:
let
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
'';
nixrb = pkgs.writeShellScriptBin "nixrb" ''
cd ${flakePath} && sudo nixos-rebuild switch --flake .#${hostname} --show-trace
@ -23,7 +20,6 @@ let
in {
home.packages = [
nixsyu
nixrb
nixcb
nixgc