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

42 lines
865 B
Nix
Raw Normal View History

2021-11-02 19:30:28 +01:00
{ pkgs, ... }: {
# 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 = {
trustedUsers = [ "root" "hackens" ];
package = pkgs.nixUnstable;
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;
}