xin/configs/nix.nix

22 lines
427 B
Nix
Raw Normal View History

2024-01-02 18:27:47 -07:00
{ pkgs, ... }:
{
nix = {
2024-01-15 21:14:53 -07:00
package = pkgs.nixVersions.nix_2_19;
2022-08-25 12:21:35 -06:00
gc = {
automatic = true;
dates = "daily";
options = "--delete-older-than 10d";
};
extraOptions = ''
experimental-features = nix-command flakes
'';
settings.auto-optimise-store = true;
settings = {
sandbox = true;
trusted-users = [ "@wheel" ];
allowed-users = [ "root" "qbit" ];
};
2022-08-25 12:21:35 -06:00
};
}