server: lock /etc/nixos read-only and force resolv.conf to 1.1.1.1

This commit is contained in:
2026-02-25 16:03:28 +02:00
parent 98d5f91cc7
commit c37c83b931

View File

@@ -128,6 +128,18 @@
]; ];
}; };
# Lock /etc/nixos to read-only mode (config lives in /home/ocbwoy3/config).
systemd.tmpfiles.rules = [
"z /etc/nixos 0555 root root - -"
];
# Force resolver config to Cloudflare only.
networking.nameservers = lib.mkForce [ "1.1.1.1" ];
environment.etc."resolv.conf".text = lib.mkForce ''
nameserver 1.1.1.1
'';
catppuccin = { catppuccin = {
enable = true; enable = true;
flavor = "mocha"; flavor = "mocha";