generated from andy/linux-nixos-hyprland-config-dotfiles
Initial commit
This commit is contained in:
58
nixos/virtualisation.nix
Normal file
58
nixos/virtualisation.nix
Normal file
@@ -0,0 +1,58 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
# Enable Kasm
|
||||
# services.kasmweb = {
|
||||
# enable = true;
|
||||
# listenPort = 9999;
|
||||
# };
|
||||
|
||||
# Enable Containerd
|
||||
# virtualisation.containerd.enable = true;
|
||||
|
||||
# Enable Docker
|
||||
# virtualisation.docker = {
|
||||
# enable = true;
|
||||
# rootless = {
|
||||
# enable = true;
|
||||
# setSocketVariable = true;
|
||||
# daemon.settings.features.cdi = true;
|
||||
# };
|
||||
# };
|
||||
# users.extraGroups.docker.members = [ "xnm" ];
|
||||
|
||||
|
||||
# Enable Podman
|
||||
virtualisation.podman = {
|
||||
enable = true;
|
||||
|
||||
# Create a `docker` alias for podman, to use it as a drop-in replacement
|
||||
dockerCompat = true;
|
||||
dockerSocket.enable = true;
|
||||
|
||||
# Required for containers under podman-compose to be able to talk to each other.
|
||||
defaultNetwork.settings.dns_enabled = true;
|
||||
};
|
||||
environment.variables.DBX_CONTAINER_MANAGER = "podman";
|
||||
users.extraGroups.podman.members = [ "xnm" ];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
nvidia-docker
|
||||
nerdctl
|
||||
|
||||
# firecracker
|
||||
# firectl
|
||||
# flintlock
|
||||
|
||||
distrobox
|
||||
qemu
|
||||
lima
|
||||
|
||||
podman-compose
|
||||
podman-tui
|
||||
|
||||
docker-compose
|
||||
# lazydocker
|
||||
# docker-credential-helpers
|
||||
];
|
||||
}
|
Reference in New Issue
Block a user