diff options
author | lassulus <lass@aidsballs.de> | 2015-04-12 20:04:25 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2015-05-19 23:17:19 +0200 |
commit | 5b55797b3c10e17a29c46206c5719f2b75850ed6 (patch) | |
tree | 113ef034e8f3476811a57ee570547f8f599e9f1f | |
parent | 8a61cb1509f82a1de90f95b0a9eb961bcae496ee (diff) |
games.nix: use mainUser
-rw-r--r-- | modules/lass/games.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/lass/games.nix b/modules/lass/games.nix index d48c484..7425aa9 100644 --- a/modules/lass/games.nix +++ b/modules/lass/games.nix @@ -1,6 +1,9 @@ { config, pkgs, ... }: -{ +let + mainUser = config.users.extraUsers.mainUser; + +in { environment.systemPackages = with pkgs; [ dwarf_fortress ]; @@ -17,6 +20,6 @@ }; security.sudo.extraConfig = '' - lass ALL=(games) NOPASSWD: ALL + ${mainUser.name} ALL=(games) NOPASSWD: ALL ''; } |