mirror of
https://github.com/gburd/nix-config.git
synced 2024-11-20 10:36:25 +00:00
25 lines
575 B
Nix
25 lines
575 B
Nix
{ config, desktop, lib, pkgs, ... }: {
|
|
#https://nixos.wiki/wiki/Podman
|
|
environment.systemPackages = with pkgs; [
|
|
unstable.distrobox
|
|
fuse-overlayfs
|
|
podman-compose
|
|
podman-tui
|
|
] ++ lib.optionals (desktop != null) [
|
|
unstable.pods
|
|
unstable.quickemu
|
|
xorg.xhost
|
|
];
|
|
|
|
virtualisation = {
|
|
podman = {
|
|
defaultNetwork.settings = {
|
|
dns_enabled = true;
|
|
};
|
|
dockerCompat = true;
|
|
dockerSocket.enable = true;
|
|
enable = true;
|
|
enableNvidia = lib.elem "nvidia" config.services.xserver.videoDrivers;
|
|
};
|
|
};
|
|
}
|