xin/configs/nix.nix

22 lines
427 B
Nix
Raw Permalink Normal View History

2024-01-02 18:27:47 -07:00
{ pkgs, ... }:
{
nix = {
package = pkgs.nixVersions.nix_2_17;
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
};
}