diff options
author | lassulus <lass@aidsballs.de> | 2015-04-12 20:06:11 +0200 |
---|---|---|
committer | tv <tv@shackspace.de> | 2015-05-19 23:17:19 +0200 |
commit | 32e316f73bf25588d92fe841c2944cf2c6855670 (patch) | |
tree | 4bd4ceb0174c742fc9fa8a3e0fc4eabef8a250f5 | |
parent | 6b92d5e973fe217617e77c9d06703c2f26f96b42 (diff) |
elster.nix: use mainUser
-rw-r--r-- | modules/lass/elster.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/lass/elster.nix b/modules/lass/elster.nix index c31c2f310..1edd01896 100644 --- a/modules/lass/elster.nix +++ b/modules/lass/elster.nix @@ -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 ''; } |