elster.nix: use mainUser

This commit is contained in:
lassulus 2015-04-12 20:06:11 +02:00 committed by tv
parent 6b92d5e973
commit 32e316f73b

View File

@ -1,6 +1,9 @@
{ config, pkgs, ... }:
{
let
mainUser = config.users.extraUsers.mainUser;
in {
users.extraUsers = {
elster = {
name = "elster";
@ -12,6 +15,6 @@
};
};
security.sudo.extraConfig = ''
lass ALL=(elster) NOPASSWD: ALL
${mainUser.name} ALL=(elster) NOPASSWD: ALL
'';
}