elster.nix: use mainUser
This commit is contained in:
parent
6b92d5e973
commit
32e316f73b
@ -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
|
||||
'';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user