server: lock /etc/nixos read-only and force resolv.conf to 1.1.1.1
This commit is contained in:
@@ -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";
|
||||||
|
|||||||
Reference in New Issue
Block a user