games.nix: use mainUser

This commit is contained in:
lassulus 2015-04-12 20:04:25 +02:00 committed by tv
parent 95f1c098e3
commit ed285405f8

View File

@ -1,6 +1,9 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ let
mainUser = config.users.extraUsers.mainUser;
in {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
dwarf_fortress dwarf_fortress
]; ];
@ -17,6 +20,6 @@
}; };
security.sudo.extraConfig = '' security.sudo.extraConfig = ''
lass ALL=(games) NOPASSWD: ALL ${mainUser.name} ALL=(games) NOPASSWD: ALL
''; '';
} }