From ed285405f8767f470f7110a5ec4b4d923206aa9c Mon Sep 17 00:00:00 2001 From: lassulus Date: Sun, 12 Apr 2015 20:04:25 +0200 Subject: games.nix: use mainUser --- modules/lass/games.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'modules') 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 ''; } -- cgit v1.2.3 [cgit] Unable to lock slot /tmp/cgit/e7200000.lock: No such file or directory (2)