diff options
author | lassulus <lass@aidsballs.de> | 2015-04-12 20:04:25 +0200 |
---|---|---|
committer | tv <tv@shackspace.de> | 2015-05-19 23:17:19 +0200 |
commit | ed285405f8767f470f7110a5ec4b4d923206aa9c (patch) | |
tree | 113ef034e8f3476811a57ee570547f8f599e9f1f /modules | |
parent | 95f1c098e34230ac987ebd398e7d7ffbf6bbb890 (diff) |
games.nix: use mainUser
Diffstat (limited to 'modules')
-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 d48c484da..7425aa91f 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 ''; } |