cyclone: Add support for Incus
This commit is contained in:
parent
34bd3b42f0
commit
f0df290658
2 changed files with 32 additions and 23 deletions
|
@ -54,12 +54,27 @@
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Docker NVIDIA runtime support
|
||||||
|
nvidia-container-toolkit.enable = true;
|
||||||
|
|
||||||
# AMD
|
# AMD
|
||||||
cpu.amd.updateMicrocode = true;
|
cpu.amd.updateMicrocode = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Container programs
|
||||||
|
boot.kernel.sysctl."net.ipv4.ip_forward" = true;
|
||||||
|
networking.firewall.trustedInterfaces = [ "docker0" "incusbr0" ];
|
||||||
|
users.users.spotlight.extraGroups = [ "adbusers" "docker" "incus-admin" ];
|
||||||
|
|
||||||
|
virtualisation = {
|
||||||
|
# Docker
|
||||||
|
docker.enable = true;
|
||||||
|
|
||||||
|
# Incus (LXD)
|
||||||
|
incus.enable = true;
|
||||||
|
|
||||||
# As recommended in https://nixos.wiki/wiki/Libvirt#Setup
|
# As recommended in https://nixos.wiki/wiki/Libvirt#Setup
|
||||||
virtualisation.libvirtd = {
|
libvirtd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
qemu = {
|
qemu = {
|
||||||
package = pkgs.qemu_kvm;
|
package = pkgs.qemu_kvm;
|
||||||
|
@ -76,6 +91,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
hostPlatform = lib.mkDefault "x86_64-linux";
|
hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
@ -119,14 +135,6 @@
|
||||||
steam.enable = true;
|
steam.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Docker support
|
|
||||||
boot.kernel.sysctl."net.ipv4.ip_forward" = true;
|
|
||||||
networking.firewall.trustedInterfaces = [ "docker0" ];
|
|
||||||
users.users.spotlight.extraGroups = [ "adbusers" "docker" ];
|
|
||||||
virtualisation.docker.enable = true;
|
|
||||||
# Docker NVIDIA runtime support
|
|
||||||
hardware.nvidia-container-toolkit.enable = true;
|
|
||||||
|
|
||||||
# Please do not change this without reviewing release notes upstream.
|
# Please do not change this without reviewing release notes upstream.
|
||||||
system.stateVersion = "24.11";
|
system.stateVersion = "24.11";
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
networking = {
|
networking = {
|
||||||
domain = "host.fox-int.cloud";
|
domain = "host.fox-int.cloud";
|
||||||
networkmanager.enable = true;
|
networkmanager.enable = true;
|
||||||
|
nftables.enable = true;
|
||||||
|
|
||||||
nameservers = [
|
nameservers = [
|
||||||
# Quad9
|
# Quad9
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue