diff --git a/workstation/configuration.nix b/workstation/configuration.nix index defb94c..beba3a9 100644 --- a/workstation/configuration.nix +++ b/workstation/configuration.nix @@ -6,13 +6,15 @@ { imports = - [ # Include the results of the hardware scan. + [ ./hardware-configuration.nix ./k8s.nix ./podman.nix ./tty.nix ./aliases.nix ./zsh.nix + ./incus.nix + ./libvirt.nix ]; # Kernel @@ -137,6 +139,7 @@ git mc eza du-dust ripgrep nix-direnv + distrobox # Languages zig diff --git a/workstation/incus.nix b/workstation/incus.nix new file mode 100644 index 0000000..687e5af --- /dev/null +++ b/workstation/incus.nix @@ -0,0 +1,18 @@ +{ config, pkgs, ... }: +{ + virtualisation.incus = { + enable = true; + ui.enable = true; + }; + + environment.systemPackages = with pkgs; [ + incus + lxc + ]; + users.users.geir = { + extraGroups = [ + "incus-admin" + ]; + }; + networking.firewall.allowedTCPPorts = [ 8443 ]; +}