feat: minimise server footprint (#32)

Co-authored-by: Truxnell <9149206+truxnell@users.noreply.github.com>
This commit is contained in:
Truxnell 2024-03-29 21:20:57 +11:00 committed by GitHub
parent 8005d2c3a7
commit 4e15944edb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 53 additions and 42 deletions

View file

@ -38,7 +38,7 @@ in
gc = mkIf cfg.gc.enable { gc = mkIf cfg.gc.enable {
# garbage collection # garbage collection
automatic = cfg.gc.enable; automatic = cfg.gc.enable;
options = "--delete-older-than 30d"; options = "--delete-older-than 7d";
inherit (cfg.gc) persistent; inherit (cfg.gc) persistent;
}; };

View file

@ -30,47 +30,11 @@ with lib;
}; };
i18n = {
defaultLocale = lib.mkDefault "en_AU.UTF-8";
};
# TODO refactor this shit out wow
# SOPS settings
# https://github.com/Mic92/sops-nix
networking.useDHCP = lib.mkDefault true; networking.useDHCP = lib.mkDefault true;
environment.systemPackages = with pkgs; [
jq
yq
btop
vim
git
dnsutils
nix
# TODO Move
nil
nixpkgs-fmt
statix
nvd
gh
];
programs.direnv = {
# TODO move to home-manager
enable = true;
nix-direnv.enable = true;
};
programs.mtr.enable = true;
} }

View file

@ -17,8 +17,26 @@ with lib;
max-free = lib.mkDefault (1000 * 1000 * 1000); max-free = lib.mkDefault (1000 * 1000 * 1000);
min-free = lib.mkDefault (128 * 1000 * 1000); min-free = lib.mkDefault (128 * 1000 * 1000);
}; };
services.logrotate.enable = mkDefault true;
environment.noXlibs = mkDefault true;
documentation = {
enable = mkDefault false;
doc.enable = mkDefault false;
info.enable = mkDefault false;
man.enable = mkDefault false;
nixos.enable = mkDefault false;
};
programs.command-not-found.enable = mkDefault false;
services.udisks2.enable = mkDefault false;
xdg = {
autostart.enable = mkDefault false;
icons.enable = mkDefault false;
mime.enable = mkDefault false;
sounds.enable = mkDefault false;
};
}; };
} }

View file

@ -10,6 +10,11 @@ with config;
de.gnome.enable = true; de.gnome.enable = true;
editor.vscodium.enable = true; editor.vscodium.enable = true;
browser.firefox.enable = true; browser.firefox.enable = true;
# Lets see if fish everywhere is OK on the pi's
# TODO decide if i drop to bash on pis?
shell.fish.enable = true;
# But wont enable plugins globally, leave them for workstations
}; };
boot = { boot = {
@ -28,9 +33,33 @@ with config;
# set xserver videodrivers if used # set xserver videodrivers if used
services.xserver.enable = true; services.xserver.enable = true;
# Laptop so ill likely use wireles
# very likely to be set by GUI packages but lets environment.systemPackages = with pkgs; [
# be declarative. jq
yq
btop
vim
git
dnsutils
nix
# TODO Move
nil
nixpkgs-fmt
statix
nvd
gh
];
i18n = {
defaultLocale = lib.mkDefault "en_AU.UTF-8";
};
programs.direnv = {
# TODO move to home-manager
enable = true;
nix-direnv.enable = true;
};
programs.mtr.enable = true;
} }