nixos/virtualbox: unbreak wrt. new security.wrappers

The new option takes an attrset, not a list.
This commit is contained in:
Bjørn Forsman 2017-02-14 22:56:37 +01:00
parent 448acd8e5e
commit 34c1b74421

View File

@ -69,13 +69,14 @@ in
environment.systemPackages = [ virtualbox ];
security.wrappers = let
mkSuid = program: {"${program}" = {
mkSuid = program: {
source = "${virtualbox}/libexec/virtualbox/${program}";
owner = "root";
group = "vboxusers";
setuid = true;
};};
in mkIf cfg.enableHardening (map mkSuid [
};
in mkIf cfg.enableHardening
(builtins.listToAttrs (map (x: { name = x; value = mkSuid x; }) [
"VBoxHeadless"
"VBoxNetAdpCtl"
"VBoxNetDHCP"
@ -83,7 +84,7 @@ in
"VBoxSDL"
"VBoxVolInfo"
"VirtualBox"
]);
]));
users.extraGroups.vboxusers.gid = config.ids.gids.vboxusers;