summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-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 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
'';
}