summaryrefslogtreecommitdiffstats
path: root/lass/2configs/review.nix
blob: 658f32084a1a94cb6a03af29e81f5182c10dc03c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
  '';
}