diff options
| author | sinanmohd <sinan@sinanmohd.com> | 2025-12-11 14:17:25 +0530 |
|---|---|---|
| committer | sinanmohd <sinan@sinanmohd.com> | 2025-12-11 14:17:25 +0530 |
| commit | 60716fe535d2a5c4839fbb2d0050a9520fa3a594 (patch) | |
| tree | 5c89e8042030614e3489b4022bf5ba8cde5ed6d8 /os/common/modules/nix.nix | |
| parent | 4cb91d608e08b0fb5d569c0bf3edca4c1eebd747 (diff) | |
chore(common/nix): drop upstreamed changes
Diffstat (limited to 'os/common/modules/nix.nix')
| -rw-r--r-- | os/common/modules/nix.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/os/common/modules/nix.nix b/os/common/modules/nix.nix new file mode 100644 index 0000000..e04a156 --- /dev/null +++ b/os/common/modules/nix.nix @@ -0,0 +1,36 @@ +{ + config, + ... +}: +let + user = config.global.userdata.name; +in +{ + nix = { + gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 30d"; + }; + + settings = { + auto-optimise-store = true; + use-xdg-base-directories = true; + trusted-users = [ user ]; + + experimental-features = [ + "flakes" + "nix-command" + ]; + + substituters = [ + "https://nixbin.sinanmohd.com" + "https://nix-community.cachix.org" + ]; + trusted-public-keys = [ + "nixbin.sinanmohd.com:dXV3KDPVrm+cGJ2M1ZmTeQJqFGaEapqiVoWHgYDh03k=" + "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" + ]; + }; + }; +} |
