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