mochi/nixos/profiles/role-server.nix

40 lines
905 B
Nix
Raw Normal View History

2024-06-20 13:03:44 -05:00
{ lib, pkgs, ... }:
2024-06-20 08:59:56 -05:00
# Role for headless servers
with lib;
{
config = {
2024-07-30 18:47:59 -05:00
mySystem = {
services.rebootRequiredCheck.enable = true;
security.wheelNeedsSudoPassword = false;
system.motd.enable = true;
};
2024-06-20 08:59:56 -05:00
nix.settings = {
max-free = lib.mkDefault (1000 * 1000 * 1000);
min-free = lib.mkDefault (128 * 1000 * 1000);
};
2024-08-04 06:31:08 -05:00
services = {
logrotate.enable = mkDefault true;
smartd.enable = mkDefault true;
};
2024-06-20 08:59:56 -05:00
environment = {
2024-08-07 10:46:56 -05:00
systemPackages = [ pkgs.unstable.lazygit ];
2024-06-20 08:59:56 -05:00
};
2024-06-22 08:49:32 -05:00
2024-06-20 08:59:56 -05:00
documentation = {
enable = mkDefault false;
doc.enable = mkDefault false;
info.enable = mkDefault false;
man.enable = mkDefault false;
nixos.enable = mkDefault false;
};
2024-08-04 06:26:25 -05:00
hardware.pulseaudio.enable = false;
2024-06-20 08:59:56 -05:00
services.udisks2.enable = mkDefault false;
2024-08-04 06:26:25 -05:00
programs.command-not-found.enable = mkDefault false;
2024-06-20 08:59:56 -05:00
};
}