modularize baseline system configuration

This commit is contained in:
Fabian Montero 2024-12-02 14:04:55 -06:00
parent 80e5a5e8a6
commit d5afd4b1a7
Signed by untrusted user: fabian
GPG key ID: 1FFAC35E1798174F
7 changed files with 107 additions and 70 deletions

View file

@ -13,13 +13,11 @@ with lib; {
./srv
];
environment.systemPackages = with pkgs; [
vim
git
];
local.sys = {
baseline.enable = true;
};
services.openssh = {
enable = true;
settings.PasswordAuthentication = false;
};
@ -38,24 +36,8 @@ with lib; {
};
};
programs = {
zsh.enable = true;
fuse.userAllowOther = true;
};
networking.hostName = "vps";
nix = {
package = pkgs.nixVersions.stable;
extraOptions = ''
experimental-features = nix-command flakes
'';
# No me interesa el global registry
settings.flake-registry = "";
};
users = {
users.fabian = {
isNormalUser = true;
@ -72,11 +54,6 @@ with lib; {
DefaultTimeoutStartSec=900s
'';
security.dhparams = {
enable = true;
defaultBitSize = 4096;
};
fileSystems = {
"/mnt/export2008" = {
device = "172.16.129.19:/nas/5876";
@ -91,18 +68,5 @@ with lib; {
};
};
services.earlyoom = {
enable = mkDefault true;
enableNotifications = true;
};
# Coredumps son un riesgo de seguridad y puden usar mucho disco
systemd.coredump.extraConfig = ''
Storage=none
ProcessSizeMax=0
'';
time.timeZone = "Europe/Amsterdam";
system.stateVersion = "24.05"; # DO NOT CHANGE
}