podman & incus on laptop

This commit is contained in:
Geir Okkenhaug Jerstad 2024-08-02 18:52:48 +02:00
parent eae6726ecb
commit 0db64447e4
3 changed files with 20 additions and 2 deletions

View file

@ -13,7 +13,8 @@
./fonts.nix ./fonts.nix
./k8s.nix ./k8s.nix
./tail.nix ./tail.nix
./pmb.nix ./podman.nix
./incus.nix
]; ];
# Bootloader. # Bootloader.

View file

@ -1,9 +1,13 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
virtualisation.incus.enable = true; virtualisation.incus = {
enable = true;
ui.enable = true;
};
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
incus incus
lxc lxc
]; ];
networking.firewall.allowedTCPPorts = [ 8443 ];
} }

13
laptop/podman.nix Normal file
View file

@ -0,0 +1,13 @@
{ config, pkgs, ... }:
{
virtualisation.podman.enable = true;
virtualisation.podman.dockerCompat = true;
virtualisation.podman.dockerSocket.enable = true;
#virtualisation.defaultNetwork.settings.dns_enabled = true;
environment.systemPackages = with pkgs; [
podman-tui
podman-compose
];
}