added distrobox/incus to workstation

This commit is contained in:
Geir Okkenhaug Jerstad 2024-08-06 10:13:59 +02:00
parent 5d01a8331a
commit 6d94ff47dc
2 changed files with 22 additions and 1 deletions

View file

@ -6,13 +6,15 @@
{ {
imports = imports =
[ # Include the results of the hardware scan. [
./hardware-configuration.nix ./hardware-configuration.nix
./k8s.nix ./k8s.nix
./podman.nix ./podman.nix
./tty.nix ./tty.nix
./aliases.nix ./aliases.nix
./zsh.nix ./zsh.nix
./incus.nix
./libvirt.nix
]; ];
# Kernel # Kernel
@ -137,6 +139,7 @@
git git
mc eza du-dust ripgrep mc eza du-dust ripgrep
nix-direnv nix-direnv
distrobox
# Languages # Languages
zig zig

18
workstation/incus.nix Normal file
View file

@ -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 ];
}