summaryrefslogtreecommitdiffstats
path: root/lass/2configs/review.nix
diff options
context:
space:
mode:
Diffstat (limited to 'lass/2configs/review.nix')
-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
+ '';
+}