athens/modules/base/nixos.nix

33 lines
545 B
Nix
Raw Normal View History

{ config, ... }: {
2023-01-31 22:01:21 -05:00
imports = [ ./common.nix ];
2022-11-09 23:24:40 -05:00
nix = {
gc = {
persistent = true;
2023-02-13 17:31:23 -05:00
dates = "weekly";
2023-06-19 16:36:44 -04:00
options = "--delete-older-than 30d";
2022-11-09 23:24:40 -05:00
};
2023-01-30 22:06:36 -05:00
settings = {
auto-optimise-store = true;
2023-01-30 22:06:36 -05:00
trusted-users = [ "root" "walkah" ];
};
2022-11-09 23:24:40 -05:00
};
2023-03-25 15:17:55 -04:00
programs = {
mosh.enable = true;
};
system = {
autoUpgrade = {
enable = true;
flake = "github:walkah/athens#${config.networking.hostName}";
dates = "daily";
randomizedDelaySec = "5m";
};
stateVersion = "23.05";
};
2022-11-09 23:24:40 -05:00
}