wine.nix: use mainUser
This commit is contained in:
parent
ed285405f8
commit
6b92d5e973
@ -1,6 +1,9 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
let
|
||||||
|
mainUser = config.users.extraUsers.mainUser;
|
||||||
|
|
||||||
|
in {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
wineUnstable
|
wineUnstable
|
||||||
];
|
];
|
||||||
@ -15,6 +18,6 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
security.sudo.extraConfig = ''
|
security.sudo.extraConfig = ''
|
||||||
lass ALL=(wine) NOPASSWD: ALL
|
${mainUser.name} ALL=(wine) NOPASSWD: ALL
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user