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