diff options
| author | seraphim <18ycm9tx@anonaddy.me> | 2026-08-04 13:28:39 +0700 |
|---|---|---|
| committer | seraphim <18ycm9tx@anonaddy.me> | 2026-08-04 13:28:39 +0700 |
| commit | be1db27940f3612a0b1a10ca17bfd5be670fd850 (patch) | |
| tree | 4c179819d89a7d842cd9b78fd54c11e06922c3c8 /nixos/modules/system/nix | |
| parent | 4eba57f4e787bf97fe7dcb0e1702723aa08de01d (diff) | |
,
Diffstat (limited to 'nixos/modules/system/nix')
| -rw-r--r-- | nixos/modules/system/nix/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nixos/modules/system/nix/default.nix b/nixos/modules/system/nix/default.nix index 8f33990..9cefbf5 100644 --- a/nixos/modules/system/nix/default.nix +++ b/nixos/modules/system/nix/default.nix @@ -1,16 +1,20 @@ { config, pkgs, lib, inputs, ... }: { + # Nix itself: enable the flake + nix-command features this config relies on. nix.settings.experimental-features = [ "nix-command" "flakes" ]; nixpkgs.config.allowUnfree = true; + # Automatic garbage collection — drop builds older than a week. nix.gc = { automatic = true; dates = "weekly"; options = "--delete-older-than 7d"; }; - programs.nix-ld.enable = true; + # envfs is the modern replacement for nix-ld: it mounts a FUSE filesystem + # on /usr/bin and /bin that resolves shebangs (e.g. #!/usr/bin/env) to the + # executables on the caller's PATH. It supersedes programs.nix-ld entirely. services.envfs.enable = true; security.polkit.enable = true; |
