use nh for sysrebuild

This commit is contained in:
William 2024-06-10 09:36:02 -03:00
parent 37558b53e5
commit 2a982c01e1
2 changed files with 11 additions and 3 deletions

View file

@ -56,6 +56,7 @@ in {
# space-cadet-pinball # Broken
sparrow
steam-run
thunderbird
ungoogled-chromium
unrar
vagrant
@ -73,6 +74,14 @@ in {
kdeconnect.enable = true;
partition-manager.enable = true;
gamemode.enable = true;
nh = {
enable = true;
clean = {
enable = true;
extraArgs = "--keep-since 7d";
};
flake = "/home/user/Projects/nix-config";
};
};
fonts = {

View file

@ -20,7 +20,6 @@
};
programs = {
password-store.package = pkgs.pass-wayland;
mangohud = {
@ -40,9 +39,9 @@
fish = {
functions = {
sysrebuild =
"sudo nixos-rebuild switch --flake '/home/user/Projects/personal/nix-config#' 2>&1 | nom";
"nh os switch --ask /home/user/Projects/personal/nix-config";
sysrebuild-boot =
"sudo nixos-rebuild boot --flake '/home/user/Projects/personal/nix-config#' 2>&1 | nom";
"nh os boot --ask /home/user/Projects/personal/nix-config";
sysupdate =
"nix flake update --commit-lock-file /home/user/Projects/personal/nix-config";
syscleanup =