2023-09-25 18:05:07 +00:00
|
|
|
{ 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
|
2023-09-25 18:05:07 +00:00
|
|
|
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-09-25 18:05:07 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-10-16 18:46:06 +00:00
|
|
|
|
2023-09-25 18:05:07 +00:00
|
|
|
}
|