athens/nix/modules/base/nixos.nix
2024-12-07 20:46:15 -05:00

60 lines
863 B
Nix

{ config, pkgs, ... }:
{
imports = [
./common.nix
../monitoring
../../users
];
documentation = {
enable = false;
};
environment.systemPackages = with pkgs; [
htop
inetutils
vim
];
nix = {
gc = {
persistent = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
settings = {
auto-optimise-store = true;
trusted-users = [
"root"
"walkah"
];
};
};
programs = {
mosh.enable = true;
};
services = {
openssh.enable = true;
tailscale.enable = true;
};
system = {
autoUpgrade = {
enable = true;
flake = "github:walkah/athens#${config.networking.hostName}";
dates = "hourly";
flags = [
"--option"
"tarball-ttl"
"0"
];
};
stateVersion = "23.05";
};
}