blob: a5bf950ca07857aeccab183d0babc3b1ffb833f9 (
plain) (
tree)
|
|
{
config,
lib,
...
}: let
cfg = config.vhack.nixconfig;
in {
options.vhack.nixconfig = {
enable = lib.mkEnableOption "sophisticated nix settings";
};
config = lib.mkIf cfg.enable {
nix = {
# gc = {
# automatic = true;
# dates = "daily";
# options = "--delete-older-than 3";
# };
settings = {
auto-optimise-store = true;
experimental-features = ["nix-command" "flakes"];
trusted-users = [
"root"
"@wheel"
];
};
};
};
}
|