2024-04-29 12:25:47 +02:00
|
|
|
{ pkgs, lib, config, ... }:
|
|
|
|
{
|
2024-10-01 15:17:11 +02:00
|
|
|
config = lib.mkMerge [
|
|
|
|
(lib.mkIf config.frogeye.dev.docker {
|
|
|
|
virtualisation.docker.enable = true;
|
|
|
|
users.users.geoffrey.extraGroups = [ "docker" ];
|
|
|
|
})
|
|
|
|
(lib.mkIf config.frogeye.dev.vm {
|
2024-10-03 13:55:31 +02:00
|
|
|
# Required to mount filesystems. Also need to add
|
|
|
|
# <binary path="/run/current-system/sw/bin/virtiofsd"/>
|
|
|
|
# to the VM's filesystem XML config
|
|
|
|
environment.systemPackages = [ pkgs.virtiofsd ];
|
2024-10-01 15:17:11 +02:00
|
|
|
virtualisation = {
|
|
|
|
libvirtd.enable = true;
|
|
|
|
spiceUSBRedirection.enable = true;
|
|
|
|
};
|
|
|
|
users.extraGroups.libvirtd.members = [ "geoffrey" ];
|
|
|
|
})
|
2024-10-03 14:20:46 +02:00
|
|
|
{
|
|
|
|
users.extraGroups.dialout.members = [ "geoffrey" ];
|
2024-10-04 14:41:43 +02:00
|
|
|
# Always comes in handy, not enabled by default anyways
|
|
|
|
programs.nix-ld.enable = true;
|
2024-10-03 14:20:46 +02:00
|
|
|
}
|
2024-10-01 15:17:11 +02:00
|
|
|
];
|
2024-04-29 12:25:47 +02:00
|
|
|
}
|