summaryrefslogtreecommitdiffstats
path: root/lass/2configs/elster.nix
blob: 5d68def3507cd1d23ceb7dcfc99b018b1329e326 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ config, pkgs, ... }:

let
  mainUser = config.users.extraUsers.mainUser;

in {
  users.extraUsers = {
    elster = {
      name = "elster";
      description = "user for running elster-online";
      home = "/home/elster";
      useDefaultShell = true;
      extraGroups = [];
      createHome = true;
      isNormalUser = true;
    };
  };
  krebs.per-user.elster.packages = [
    pkgs.chromium
  ];
  security.sudo.extraConfig = ''
    ${mainUser.name} ALL=(elster) NOPASSWD: ALL
  '';
}