summaryrefslogtreecommitdiff
path: root/hosts/common/systemd.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/common/systemd.nix')
-rw-r--r--hosts/common/systemd.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/hosts/common/systemd.nix b/hosts/common/systemd.nix
index 1c71cfc..9d44da4 100644
--- a/hosts/common/systemd.nix
+++ b/hosts/common/systemd.nix
@@ -1,10 +1,12 @@
-{config, ...}: {
+{config, ...}: let
+ value = config.sys.wsl.enable;
+in {
services = {
journald.extraConfig = ''
MaxRetentionSec=1w
'';
resolved = {
- enable = true;
+ enable = value;
dnssec = "allow-downgrade";
extraConfig = ''
[Resolve]