21 lines
411 B
Nix
Raw Normal View History

2024-01-19 11:58:52 +01:00
{ lib, config, pkgs, ... }:
2024-04-14 07:57:07 +02:00
let cfg = config.syscfg.make.virt;
2023-11-04 02:28:27 +01:00
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;
};
};
};
};
}