nix-config/nixos/_mixins/virt/default.nix

24 lines
591 B
Nix
Raw Normal View History

{ config, desktop, lib, pkgs, ... }: {
environment.systemPackages = with pkgs; [
fuse-overlayfs
] ++ lib.optionals (desktop != null) [
unstable.quickemu
2023-10-16 18:46:06 +00:00
unstable.quickgui
xorg.xhost
];
virtualisation = {
2023-10-16 18:46:06 +00:00
containers.enable = true;
containers.storage.settings = {
storage = {
driver = "overlay";
runroot = "/run/containers/storage";
graphroot = "/var/lib/containers/storage";
rootless_storage_path = "/tmp/containers-$USER";
options.overlay.mountopt = "nodev,metacopy=on,acltype=posixacl";
};
};
};
2023-10-16 18:46:06 +00:00
}