2024-12-30 18:06:16 -05:00
|
|
|
{ ... }:
|
2024-12-19 02:32:58 -05:00
|
|
|
{
|
2024-12-13 22:26:27 -05:00
|
|
|
nix = {
|
|
|
|
settings = {
|
|
|
|
experimental-features = "nix-command flakes";
|
|
|
|
auto-optimise-store = true;
|
|
|
|
flake-registry = "";
|
2025-01-05 06:58:28 -05:00
|
|
|
trusted-users = [ "root" "@wheel" ];
|
2025-01-05 18:21:20 -05:00
|
|
|
trusted-public-keys = [ "cache.cything.io:4NhyCpZuroY7+JP18m1wkAgJGb6WL0jrtx2Bgrvdtow=" ];
|
|
|
|
substituters = [ "https://cache.cything.io/" ];
|
2024-12-13 22:26:27 -05:00
|
|
|
};
|
|
|
|
channel.enable = false;
|
|
|
|
optimise = {
|
|
|
|
automatic = true;
|
2024-12-19 02:32:58 -05:00
|
|
|
dates = [ "03:45" ];
|
2024-12-13 22:26:27 -05:00
|
|
|
};
|
|
|
|
gc = {
|
|
|
|
automatic = true;
|
|
|
|
dates = "19:00";
|
|
|
|
persistent = true;
|
2024-12-23 17:18:18 -05:00
|
|
|
options = "--delete-older-than 14d";
|
2024-12-13 22:26:27 -05:00
|
|
|
};
|
2025-01-05 06:58:28 -05:00
|
|
|
extraOptions = ''
|
|
|
|
builders-use-substitutes = true
|
|
|
|
'';
|
|
|
|
|
2024-12-13 22:26:27 -05:00
|
|
|
};
|
|
|
|
time.timeZone = "America/Toronto";
|
2024-12-16 20:36:32 -05:00
|
|
|
networking.firewall.logRefusedConnections = false;
|
2024-12-22 21:07:38 -05:00
|
|
|
|
|
|
|
# this is true by default and mutually exclusive with
|
|
|
|
# programs.nix-index
|
|
|
|
programs.command-not-found.enable = false;
|
2024-12-30 18:06:16 -05:00
|
|
|
programs.nix-index.enable = false; # set above to false to use this
|
2024-12-29 01:10:11 -05:00
|
|
|
|
|
|
|
# see journald.conf(5)
|
|
|
|
services.journald.extraConfig = "MaxRetentionSec=2d";
|
2024-12-13 22:26:27 -05:00
|
|
|
}
|