2015-07-16 13:51:01 +00:00
|
|
|
{ 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;
|
|
|
|
};
|
|
|
|
};
|
2015-12-12 17:25:37 +00:00
|
|
|
krebs.per-user.elster.packages = [
|
|
|
|
pkgs.chromium
|
|
|
|
];
|
2015-07-16 13:51:01 +00:00
|
|
|
security.sudo.extraConfig = ''
|
|
|
|
${mainUser.name} ALL=(elster) NOPASSWD: ALL
|
|
|
|
'';
|
|
|
|
}
|