summaryrefslogtreecommitdiffstats
path: root/lass/2configs
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2021-06-05 14:26:26 +0200
committerlassulus <lassulus@lassul.us>2021-06-05 14:26:26 +0200
commitb5cd1dc9c5f46971e67817915f5c9b04563bb85b (patch)
tree346c7958eface4e71353492277d6e3f3fbba6835 /lass/2configs
parent74b63fceb8f5e1bbeb87963e86207b83c7486c3d (diff)
l: add review.nix
Diffstat (limited to 'lass/2configs')
-rw-r--r--lass/2configs/review.nix14
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
+ '';
+}