stockholm/old/modules/lass/wine.nix

24 lines
463 B
Nix
Raw Normal View History

2015-04-09 23:37:29 +00:00
{ config, pkgs, ... }:
2015-04-12 18:05:24 +00:00
let
mainUser = config.users.extraUsers.mainUser;
in {
2015-04-09 23:40:22 +00:00
environment.systemPackages = with pkgs; [
2015-04-10 01:03:34 +00:00
wineUnstable
2015-04-09 23:40:22 +00:00
];
2015-04-09 23:37:29 +00:00
users.extraUsers = {
2015-04-09 23:42:03 +00:00
wine = {
name = "wine";
description = "user for running wine";
home = "/home/wine";
2015-04-09 23:37:29 +00:00
useDefaultShell = true;
2015-05-29 00:44:54 +00:00
extraGroups = [ "audio" ];
2015-04-09 23:37:29 +00:00
createHome = true;
};
};
security.sudo.extraConfig = ''
2015-04-12 18:05:24 +00:00
${mainUser.name} ALL=(wine) NOPASSWD: ALL
2015-04-09 23:37:29 +00:00
'';
}