stockholm/old/modules/lass/elster.nix

21 lines
405 B
Nix
Raw Normal View History

2015-04-09 23:37:29 +00:00
{ config, pkgs, ... }:
2015-04-12 18:06:11 +00:00
let
mainUser = config.users.extraUsers.mainUser;
in {
2015-04-09 23:37:29 +00:00
users.extraUsers = {
elster = {
name = "elster";
description = "user for running elster-online";
home = "/home/elster";
useDefaultShell = true;
extraGroups = [];
createHome = true;
};
};
security.sudo.extraConfig = ''
2015-04-12 18:06:11 +00:00
${mainUser.name} ALL=(elster) NOPASSWD: ALL
2015-04-09 23:37:29 +00:00
'';
}