From 842f33692e55793909f4c2ffc7f6792479307b86 Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Sun, 4 Sep 2022 04:25:59 -0400 Subject: [PATCH] Make self a trusted user --- modules/linux/user.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/linux/user.nix b/modules/linux/user.nix index 1be7971..ee8f39c 100644 --- a/modules/linux/user.nix +++ b/modules/linux/user.nix @@ -36,6 +36,11 @@ with lib; { }; # If we install the user, enable sudo security.sudo.enable = mkDefault nc.installUser; + # If we isntall the user, make them trusted + nix.settings.trusted-users = + if nc.installUser then [ + "nathan" + ] else [ ]; # If we setup the user, install the shell as well environment.systemPackages = if nc.installUser then [