From 442555be64f4d4ab640ada6f7d2b4dfb665f3f0a Mon Sep 17 00:00:00 2001 From: MoritzBoehme Date: Sun, 9 Jan 2022 14:02:22 +0100 Subject: [PATCH] :rocket: use mkDefault --- modules/security.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/security.nix b/modules/security.nix index fefd484..69690b1 100644 --- a/modules/security.nix +++ b/modules/security.nix @@ -66,7 +66,7 @@ # Enable doas as an alternative to sudo security.doas = { - enable = true; + enable = lib.mkDefault true; extraRules = [ # Do not ask for a password again for some time after the user successfully authenticates. { @@ -75,5 +75,5 @@ } ]; }; - security.sudo.enable = !config.security.doas.enable; + security.sudo.enable = lib.mkDefault (!config.security.doas.enable); }