feat: add docker with nvidia-containers support

This commit is contained in:
ryan4yin
2023-05-06 04:57:48 +08:00
parent 7619f7ca41
commit 8619d9a284
2 changed files with 13 additions and 5 deletions
+7
View File
@@ -58,6 +58,13 @@
modesetting.enable = true; modesetting.enable = true;
}; };
hardware.opengl.driSupport32Bit = true;
virtualisation.docker = {
enable = true;
enableNvidia = true;
storageDriver = "btrfs";
};
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions # settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave # on your system were taken. Its perfectly fine and recommended to leave
+2 -1
View File
@@ -98,6 +98,7 @@
nnn # terminal file manager nnn # terminal file manager
]; ];
# Enable sound with pipewire. # Enable sound with pipewire.
sound.enable = true; sound.enable = true;
hardware.pulseaudio.enable = false; hardware.pulseaudio.enable = false;
@@ -132,7 +133,7 @@
users.users.ryan = { users.users.ryan = {
isNormalUser = true; isNormalUser = true;
description = "ryan"; description = "ryan";
extraGroups = [ "networkmanager" "wheel" ]; extraGroups = [ "networkmanager" "wheel" "docker" ];
openssh.authorizedKeys.keys = [ openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJx3Sk20pLL1b2PPKZey2oTyioODrErq83xG78YpFBoj admin@ryan-MBP" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJx3Sk20pLL1b2PPKZey2oTyioODrErq83xG78YpFBoj admin@ryan-MBP"
]; ];