l: add review.nix
This commit is contained in:
parent
74b63fceb8
commit
b5cd1dc9c5
14
lass/2configs/review.nix
Normal file
14
lass/2configs/review.nix
Normal file
@ -0,0 +1,14 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
mainUser = config.users.extraUsers.mainUser;
|
||||
in {
|
||||
|
||||
users.users.review = {
|
||||
isNormalUser = true;
|
||||
packages = [ pkgs.nixpkgs-review ];
|
||||
};
|
||||
security.sudo.extraConfig = ''
|
||||
${mainUser.name} ALL=(review) NOPASSWD: ALL
|
||||
'';
|
||||
}
|
Loading…
Reference in New Issue
Block a user