summaryrefslogtreecommitdiffstats
path: root/modules/lass
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2015-04-12 20:06:11 +0200
committertv <tv@shackspace.de>2015-05-19 23:17:19 +0200
commit32e316f73bf25588d92fe841c2944cf2c6855670 (patch)
tree4bd4ceb0174c742fc9fa8a3e0fc4eabef8a250f5 /modules/lass
parent6b92d5e973fe217617e77c9d06703c2f26f96b42 (diff)
elster.nix: use mainUser
Diffstat (limited to 'modules/lass')
-rw-r--r--modules/lass/elster.nix7
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
'';
}