diff options
author | lassulus <lassulus@lassul.us> | 2021-06-05 14:26:26 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2021-06-05 14:26:26 +0200 |
commit | b5cd1dc9c5f46971e67817915f5c9b04563bb85b (patch) | |
tree | 346c7958eface4e71353492277d6e3f3fbba6835 /lass/2configs | |
parent | 74b63fceb8f5e1bbeb87963e86207b83c7486c3d (diff) |
l: add review.nix
Diffstat (limited to 'lass/2configs')
-rw-r--r-- | lass/2configs/review.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lass/2configs/review.nix b/lass/2configs/review.nix new file mode 100644 index 000000000..658f32084 --- /dev/null +++ b/lass/2configs/review.nix @@ -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 + ''; +} |