Skip to content

Commit

Permalink
nixos/sudo: fix security.sudo.package
Browse files Browse the repository at this point in the history
(cherry picked from commit 6e15779)
  • Loading branch information
nbraud authored and bjornfor committed Nov 3, 2023
1 parent d5f4a85 commit b1d2aa8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions nixos/modules/security/sudo.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ let

cfg = config.security.sudo;

inherit (pkgs) sudo;

toUserString = user: if (isInt user) then "#${toString user}" else "${user}";
toGroupString = group: if (isInt group) then "%#${toString group}" else "%${group}";

Expand Down Expand Up @@ -243,7 +241,7 @@ in
};
};

environment.systemPackages = [ sudo ];
environment.systemPackages = [ cfg.package ];

security.pam.services.sudo = { sshAgentAuth = true; usshAuth = true; };

Expand Down

0 comments on commit b1d2aa8

Please sign in to comment.