enable libvirt

This commit is contained in:
mjallen18
2024-02-20 10:01:41 -06:00
parent 74b7b87d61
commit 1950e4a75f

View File

@@ -203,8 +203,8 @@ in
enable = true;
allowPing = true;
extraCommands = ''iptables -t raw -A OUTPUT -p udp -m udp --dport 137 -j CT --helper netbios-ns'';
allowedTCPPorts = [ 80 443 ];
allowedUDPPorts = [ 80 443 ];
allowedTCPPorts = [ 80 443 61208 ];
allowedUDPPorts = [ 80 443 61208 ];
};
};
@@ -227,12 +227,14 @@ in
pciutils
vulkan-tools
clinfo
glances
];
};
# Configure programs
programs = {
fish.enable = true;
virt-manager.enable = true;
};
# Configure nixpkgs
@@ -246,7 +248,7 @@ in
# Define a user account. Don't forget to set a password with passwd.
users.users."${user}" = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" "docker" "podman" ]; # Enable sudo for the user.
extraGroups = [ "wheel" "networkmanager" "docker" "podman" "libvirtd" ]; # Enable sudo for the user.
initialHashedPassword = password;
shell = pkgs.fish;
packages = with pkgs; [
@@ -259,7 +261,7 @@ in
aspellDicts.en-science
aha
papirus-icon-theme
ffmpeg
firefox
];
};
@@ -274,6 +276,7 @@ in
virtualisation.docker.enable = true;
virtualisation.docker.enableNvidia = true;
virtualisation.docker.enableOnBoot = true;
virtualisation.libvirtd.enable = true;
# This option defines the first version of NixOS you have installed on this particular machine,
# and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.