diff options
| author | Fuwn <[email protected]> | 2024-08-30 17:18:42 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-08-30 17:18:42 -0700 |
| commit | f011065b76e37a76222919c333005559eda8dbde (patch) | |
| tree | d56b550369591048c9062344e49ca3e79a291b14 /modules/nix.nix | |
| parent | update (diff) | |
| download | nixos-config-f011065b76e37a76222919c333005559eda8dbde.tar.xz nixos-config-f011065b76e37a76222919c333005559eda8dbde.zip | |
swag
Diffstat (limited to 'modules/nix.nix')
| -rw-r--r-- | modules/nix.nix | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/modules/nix.nix b/modules/nix.nix index 8efc3ef..c6b227a 100644 --- a/modules/nix.nix +++ b/modules/nix.nix @@ -1,6 +1,4 @@ -{ - nixpkgs.config.allowUnfree = true; - +{ config, ... }: { nix = { settings = { auto-optimise-store = true; @@ -8,6 +6,7 @@ warn-dirty = false; log-lines = 50; # sandbox = "relaxed"; + extra-sandbox-paths = [ config.programs.ccache.cacheDir ]; trusted-users = [ "@wheel" @@ -22,11 +21,15 @@ "https://cache.nixos.org/" "https://nix-community.cachix.org" "https://hyprland.cachix.org" + "https://nyx.chaotic.cx/" + "https://nixpkgs-wayland.cachix.org/" ]; trusted-public-keys = [ "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" + "nyx.cachix.org-1:HfnXSw4pj95iI/n17rIDy40agHj12WfF+Gqk6SonIT8=" + "nixpkgs-wayland.cachix.org-1:3lwxaILxMRkVhehr5StQprHdEo4IrE8sRho9R9HOLYA=" ]; experimental-features = [ @@ -36,9 +39,9 @@ }; gc = { - automatic = false; - dates = "weekly"; - options = "--delete-older-than 7d"; + automatic = true; + dates = "daily"; + options = "--delete-older-than 3d"; }; }; } |