mirror of
https://github.com/gburd/nix-config.git
synced 2024-11-15 00: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;
|
|
};
|
|
};
|
|
}
|