18 lines
423 B
Nix
18 lines
423 B
Nix
{ pkgs, lib, config, ... }:
|
|
{
|
|
config = lib.mkMerge [
|
|
(lib.mkIf config.frogeye.dev.docker {
|
|
virtualisation.docker.enable = true;
|
|
users.users.geoffrey.extraGroups = [ "docker" ];
|
|
})
|
|
(lib.mkIf config.frogeye.dev.vm {
|
|
virtualisation = {
|
|
libvirtd.enable = true;
|
|
spiceUSBRedirection.enable = true;
|
|
};
|
|
users.extraGroups.libvirtd.members = [ "geoffrey" ];
|
|
})
|
|
|
|
];
|
|
}
|