39 lines
905 B
Nix
39 lines
905 B
Nix
{ lib, pkgs, ... }:
|
|
# Role for headless servers
|
|
with lib;
|
|
{
|
|
config = {
|
|
mySystem = {
|
|
services.rebootRequiredCheck.enable = true;
|
|
security.wheelNeedsSudoPassword = false;
|
|
system.motd.enable = true;
|
|
};
|
|
|
|
nix.settings = {
|
|
max-free = lib.mkDefault (1000 * 1000 * 1000);
|
|
min-free = lib.mkDefault (128 * 1000 * 1000);
|
|
};
|
|
|
|
services = {
|
|
logrotate.enable = mkDefault true;
|
|
smartd.enable = mkDefault true;
|
|
};
|
|
|
|
environment = {
|
|
systemPackages = [ pkgs.unstable.lazygit ];
|
|
};
|
|
|
|
documentation = {
|
|
enable = mkDefault false;
|
|
doc.enable = mkDefault false;
|
|
info.enable = mkDefault false;
|
|
man.enable = mkDefault false;
|
|
nixos.enable = mkDefault false;
|
|
};
|
|
|
|
hardware.pulseaudio.enable = false;
|
|
|
|
services.udisks2.enable = mkDefault false;
|
|
programs.command-not-found.enable = mkDefault false;
|
|
};
|
|
}
|