diff --git a/flake.lock b/flake.lock index f584a7a..e0325df 100644 --- a/flake.lock +++ b/flake.lock @@ -7,11 +7,11 @@ ] }, "locked": { - "lastModified": 1719827439, - "narHash": "sha256-tneHOIv1lEavZ0vQ+rgz67LPNCgOZVByYki3OkSshFU=", + "lastModified": 1720045378, + "narHash": "sha256-lmE7B+QXw7lWdBu5GQlUABSpzPk3YBb9VbV+IYK5djk=", "owner": "nix-community", "repo": "home-manager", - "rev": "59ce796b2563e19821361abbe2067c3bb4143a7d", + "rev": "0a30138c694ab3b048ac300794c2eb599dc40266", "type": "github" }, "original": { diff --git a/nixos.nix b/nixos.nix index f987d54..579e986 100644 --- a/nixos.nix +++ b/nixos.nix @@ -21,11 +21,15 @@ "flakes" ]; - # Enable automatic garbage collection. - nix.gc = { - automatic = true; - dates = "weekly"; - options = "--delete-older-than 1w"; + # Enable nh, a bundle of CLI utilities for NixOS + programs.nh = { + enable = true; + + # Enable automatic garbage collection. + clean.enable = true; + clean.extraArgs = "--keep-since 4d --keep 3"; + + flake = "/home/wizardlink/.system"; }; # Optimize storage diff --git a/switch b/switch deleted file mode 100755 index dc20a6f..0000000 --- a/switch +++ /dev/null @@ -1,12 +0,0 @@ -#!/etc/profiles/per-user/wizardlink/bin/fish - -function build - sudo nixos-rebuild switch --flake ~/.system\#nixos $argv[1] -end - -if test "--fast" = "$argv[1]" - build --fast -else - build -end -