From 7608b3701bf43502a9d3e5752b5f4cd9643f126b Mon Sep 17 00:00:00 2001 From: seth Date: Wed, 25 Jan 2023 20:26:41 -0500 Subject: help --- hosts/common/systemd.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 hosts/common/systemd.nix (limited to 'hosts/common/systemd.nix') diff --git a/hosts/common/systemd.nix b/hosts/common/systemd.nix new file mode 100644 index 0000000..42b4042 --- /dev/null +++ b/hosts/common/systemd.nix @@ -0,0 +1,19 @@ +{config, ...}: { + services = { + journald.extraConfig = '' + MaxRetentionSec=1w + ''; + resolved = + if config.system.gui-stuff + then { + enable = true; + dnssec = "allow-downgrade"; + extraConfig = '' + [Resolve] + DNS=1.1.1.1 1.0.0.1 + DNSOverTLS=yes + ''; + } + else {}; + }; +} -- cgit v1.2.3