feat: system config updates (caddy, printing, hosts, coredump, packages)

Add Caddy reverse proxy for fc.dev, Epson printer support, extraHosts
entries, coredump limits for Antigravity, and new packages (sshpass,
nssTools, brave, audacity, calibre).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Pierre Martin
2026-02-17 16:12:07 +01:00
parent 5e7c653cf2
commit e1d4d4bbce
2 changed files with 37 additions and 3 deletions

View File

@@ -29,7 +29,9 @@
# Enable networking # Enable networking
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
networking.extraHosts = ""; networking.extraHosts = ''
127.0.0.1 fc.dev
109.238.11.111 nuage-v1.une-frouzins.fr'';
# Set your time zone. # Set your time zone.
time.timeZone = "Europe/Paris"; time.timeZone = "Europe/Paris";
@@ -68,7 +70,8 @@
users.users.pierre = { users.users.pierre = {
isNormalUser = true; isNormalUser = true;
description = "Pierre"; description = "Pierre";
extraGroups = [ "networkmanager" "wheel" "audio" "docker" "video" ]; extraGroups =
[ "networkmanager" "wheel" "audio" "docker" "video" "lpadmin" ];
shell = pkgs.zsh; shell = pkgs.zsh;
packages = with pkgs; [ ]; packages = with pkgs; [ ];
}; };
@@ -109,6 +112,10 @@
libraries = with pkgs; [ fnm stdenv.cc.cc.lib ]; libraries = with pkgs; [ fnm stdenv.cc.cc.lib ];
}; };
# Printing (Epson Stylus SX230 - St Drézéry)
services.printing.enable = true;
services.printing.drivers = with pkgs; [ epson-escpr ];
# List services that you want to enable: # List services that you want to enable:
services.nscd.enable = true; services.nscd.enable = true;
services.tlp.enable = true; services.tlp.enable = true;
@@ -123,6 +130,29 @@
services.gvfs.enable = services.gvfs.enable =
true; # to view MTP devices in file manager - https://www.perplexity.ai/search/how-to-browse-files-from-bus-0-QWBoYG1gRLu3uMRqFSzw9A true; # to view MTP devices in file manager - https://www.perplexity.ai/search/how-to-browse-files-from-bus-0-QWBoYG1gRLu3uMRqFSzw9A
# Prevent coredump issues with Antigravity - https://www.perplexity.ai/search/systemd-coredump-high-cpu-on-n-LUnRQViaRuiDn1LR06hU8w#2
systemd.coredump = {
enable = true;
extraConfig = ''
Storage=none
ProcessSizeMax=50M
MaxUse=100M
'';
};
# Caddy
# Setup (one time): certutil -d sql:$HOME/.pki/nssdb -A -t "C,," -n "mkcert" -i ~/.local/share/mkcert/rootCA.pem
# Per domain:
# mkcert -cert-file /tmp/fc.dev.pem -key-file /tmp/fc.dev-key.pem fc.dev
# sudo mkdir -p /etc/caddy/certs && sudo cp /tmp/fc.dev.pem /tmp/fc.dev-key.pem /etc/caddy/certs/ && sudo chown -R caddy:caddy /etc/caddy/certs
services.caddy = {
enable = true;
virtualHosts."fc.dev".extraConfig = ''
tls /etc/caddy/certs/fc.dev.pem /etc/caddy/certs/fc.dev-key.pem
reverse_proxy http://127.0.0.1:4000
'';
};
# Enable the OpenSSH daemon. # Enable the OpenSSH daemon.
# services.openssh.enable = true; # services.openssh.enable = true;

View File

@@ -80,6 +80,7 @@ in {
yubikey-manager yubikey-manager
pam_u2f pam_u2f
polkit_gnome # fun fact: https://gitlab.gnome.org/GNOME/gdm/-/issues/613 polkit_gnome # fun fact: https://gitlab.gnome.org/GNOME/gdm/-/issues/613
sshpass
arandr arandr
feh feh
@@ -152,6 +153,7 @@ in {
# uv # uv
# conda # conda
mkcert mkcert
nssTools # certutil for mkcert CA installation in browsers
goaccess goaccess
grafana-loki # logcli grafana-loki # logcli
@@ -168,10 +170,12 @@ in {
libnotify # notifications libnotify # notifications
# Perso # Perso
brave
nextcloud-client nextcloud-client
rclone rclone
audacity
freeplane freeplane
# calibre calibre
gparted gparted
ticktick ticktick
agate agate