From 32e316f73bf25588d92fe841c2944cf2c6855670 Mon Sep 17 00:00:00 2001 From: lassulus Date: Sun, 12 Apr 2015 20:06:11 +0200 Subject: elster.nix: use mainUser --- modules/lass/elster.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'modules/lass') 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 ''; } -- cgit v1.2.3