hackens-org-configurations/machines/hackens-milieu/system.nix

45 lines
849 B
Nix
Raw Normal View History

2024-09-24 12:33:51 +02:00
{ pkgs, ... }:
{
2021-11-02 19:30:28 +01:00
# Upgrades
system.autoUpgrade = {
enable = true;
allowReboot = false;
};
2023-01-15 18:34:00 +01:00
# SSD stuff
services.fstrim = {
enable = true;
};
2021-11-02 19:30:28 +01:00
# Auto-GC and store optimizations
nix = {
2024-09-24 12:33:51 +02:00
trustedUsers = [
"root"
"hackens"
];
2021-11-02 19:30:28 +01:00
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 60d";
};
optimise.automatic = true;
extraOptions = ''
experimental-features = nix-command flakes
# Thank you
min-free = ${toString (100 * 1024 * 1024)}
max-free = ${toString (1024 * 1024 * 1024)}
'';
};
services.locate.enable = true;
2023-01-15 18:34:00 +01:00
# ssh
2021-11-02 19:30:28 +01:00
services.openssh.enable = true;
2022-07-30 08:44:32 +02:00
services.openssh.passwordAuthentication = false;
2023-01-15 18:34:00 +01:00
# We are on a trusted network
2021-11-02 19:30:28 +01:00
networking.firewall.enable = false;
2023-01-15 18:34:00 +01:00
2021-11-02 19:30:28 +01:00
documentation.info.enable = false;
}