21 lines
412 B
Nix
Raw Normal View History

2024-01-19 11:58:52 +01:00
{ lib, config, pkgs, ... }:
2023-11-04 02:28:27 +01:00
let cfg = config.hostcfg.make.virt;
in {
config = lib.mkIf cfg {
2024-01-19 11:58:52 +01:00
environment.systemPackages = [ pkgs.qemu ];
2023-11-04 02:28:27 +01:00
virtualisation = {
2024-01-19 11:58:52 +01:00
libvirtd.enable = true;
2023-11-04 02:28:27 +01:00
# waydroid.enable = true;
# lxd.enable = true;
docker = {
enable = true;
rootless = {
enable = true;
setSocketVariable = true;
};
};
};
};
}