games.nix: use mainUser
This commit is contained in:
parent
95f1c098e3
commit
ed285405f8
@ -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
|
||||
'';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user