38 lines
1 KiB
Nix
38 lines
1 KiB
Nix
{ ... }:
|
|
{
|
|
nix = {
|
|
settings = {
|
|
experimental-features = "nix-command flakes";
|
|
auto-optimise-store = true;
|
|
flake-registry = "";
|
|
trusted-users = [ "root" "@wheel" ];
|
|
trusted-public-keys = [ "central:zOr/tVH4EqkIgnClJJzYkHYHbCTtG1aUsA2OZjObAt0=" ];
|
|
substituters = [ "https://cache.cything.io/central" ];
|
|
};
|
|
channel.enable = false;
|
|
optimise = {
|
|
automatic = true;
|
|
dates = [ "03:45" ];
|
|
};
|
|
gc = {
|
|
automatic = true;
|
|
dates = "19:00";
|
|
persistent = true;
|
|
options = "--delete-older-than 14d";
|
|
};
|
|
extraOptions = ''
|
|
builders-use-substitutes = true
|
|
'';
|
|
|
|
};
|
|
time.timeZone = "America/Toronto";
|
|
networking.firewall.logRefusedConnections = false;
|
|
|
|
# this is true by default and mutually exclusive with
|
|
# programs.nix-index
|
|
programs.command-not-found.enable = false;
|
|
programs.nix-index.enable = false; # set above to false to use this
|
|
|
|
# see journald.conf(5)
|
|
services.journald.extraConfig = "MaxRetentionSec=2d";
|
|
}
|