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