all repos — nixfiles @ e5ae80ec47241212ae30061b18921495acdd4cb6

System and user configuration, managed by nix and home-manager

remove angrr flake input - nixos has its own module; use that there - darwin doesn't. I can run it manually for now

Alin
commit

e5ae80ec47241212ae30061b18921495acdd4cb6

parent

c2dc53da0711d45467f3b98e9836cce1bbd2436e

1 file changed, 34 insertions(+), 1 deletion(-)

changed files
M system/settings/configuration/nix-linux.nix → system/settings/configuration/nix-linux.nix
@@ -14,5 +14,38 @@ };
nixpkgs.config.allowUnfree = true; - services.angrr.enableNixGcIntegration = true; + services.angrr = { + enable = true; + settings = { + temporary-root-policies = { + direnv = { + path-regex = "/\\.direnv/"; + period = "14d"; + }; + result = { + path-regex = "/result[^/]*$"; + period = "3d"; + }; + }; + profile-policies = { + system = { + profile-paths = [ "/nix/var/nix/profiles/system" ]; + keep-since = "30d"; + keep-latest-n = 5; + keep-booted-system = true; + keep-current-system = true; + }; + user = { + enable = true; + profile-paths = [ + # `~` at the beginning will be expanded to the home directory of each discovered user + "~/.local/state/nix/profiles/profile" + "/nix/var/nix/profiles/per-user/root/profile" + ]; + keep-since = "3d"; + keep-latest-n = 1; + }; + }; + }; + }; }