41 lines
786 B
Nix
41 lines
786 B
Nix
{ lib, ... }:
|
|
|
|
{
|
|
nix.settings = {
|
|
experimental-features = [
|
|
"nix-command"
|
|
"flakes"
|
|
];
|
|
|
|
allowed-users = [
|
|
"root"
|
|
"@wheel"
|
|
];
|
|
|
|
substituters = lib.mkBefore [
|
|
"https://cache.lix.systems"
|
|
];
|
|
trusted-public-keys = lib.mkBefore [
|
|
"cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o="
|
|
];
|
|
};
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
programs.nix-index = {
|
|
enable = lib.mkDefault true;
|
|
enableBashIntegration = lib.mkDefault true;
|
|
};
|
|
programs.nix-index-database.comma.enable = lib.mkDefault true;
|
|
|
|
nix.optimise = lib.mkDefault {
|
|
automatic = true;
|
|
dates = [ "daily" ];
|
|
};
|
|
|
|
nix.gc = lib.mkDefault {
|
|
automatic = true;
|
|
dates = "daily";
|
|
options = "--delete-older-than 30d";
|
|
};
|
|
}
|