Configured docker with nvidia passhrough
This commit is contained in:
7
modules/containers-nvidia.nix
Normal file
7
modules/containers-nvidia.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{...}: {
|
||||
virtualisation.docker = {
|
||||
enable = true;
|
||||
storageDriver = "btrfs";
|
||||
enableNvidia = true;
|
||||
};
|
||||
}
|
||||
6
modules/containers.nix
Normal file
6
modules/containers.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{...}: {
|
||||
virtualisation.docker = {
|
||||
enable = true;
|
||||
storageDriver = "btrfs";
|
||||
};
|
||||
}
|
||||
@@ -35,7 +35,7 @@
|
||||
users.users.panotaka = {
|
||||
isNormalUser = true;
|
||||
description = "panotaka";
|
||||
extraGroups = ["networkmanager" "wheel"];
|
||||
extraGroups = ["networkmanager" "wheel" "libvirtd"];
|
||||
shell = pkgs.fish;
|
||||
openssh.authorizedKeys.keys = [
|
||||
];
|
||||
|
||||
6
modules/virtualization.nix
Normal file
6
modules/virtualization.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{...}: {
|
||||
virtualisation.libvirtd.enable = true;
|
||||
|
||||
# Only true if a desktop environment is installed
|
||||
programs.virt-manager.enable = true;
|
||||
}
|
||||
Reference in New Issue
Block a user