nanuqsaurus/modules/system/nix-core.nix

44 lines
822 B
Nix
Raw Normal View History

{ 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;
2026-02-11 11:43:28 +02:00
programs.nix-ld.enable = 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";
};
}