mirror of
https://github.com/tuxdotrs/nix-config.git
synced 2025-12-16 07:10:04 +05:30
refactor(hosts): consolidate nvidia-container-toolkit configuration
This commit is contained in:
@@ -21,8 +21,8 @@
|
|||||||
../../modules/nixos/steam.nix
|
../../modules/nixos/steam.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
hardware.nvidia-container-toolkit.enable = true;
|
||||||
tux.services.openssh.enable = true;
|
tux.services.openssh.enable = true;
|
||||||
|
|
||||||
nixpkgs.config.cudaSupport = true;
|
nixpkgs.config.cudaSupport = true;
|
||||||
|
|
||||||
sops.secrets = {
|
sops.secrets = {
|
||||||
|
|||||||
@@ -12,7 +12,10 @@
|
|||||||
../../modules/nixos/virtualisation/docker.nix
|
../../modules/nixos/virtualisation/docker.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
hardware.nvidia-container-toolkit.suppressNvidiaDriverAssertion = true;
|
hardware.nvidia-container-toolkit = {
|
||||||
|
enable = true;
|
||||||
|
suppressNvidiaDriverAssertion = true;
|
||||||
|
};
|
||||||
|
|
||||||
tux.services.openssh.enable = true;
|
tux.services.openssh.enable = true;
|
||||||
|
|
||||||
|
|||||||
@@ -8,8 +8,6 @@
|
|||||||
docker.enable = true;
|
docker.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
hardware.nvidia-container-toolkit.enable = true;
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [lazydocker];
|
environment.systemPackages = with pkgs; [lazydocker];
|
||||||
|
|
||||||
users.users.${username}.extraGroups = ["docker"];
|
users.users.${username}.extraGroups = ["docker"];
|
||||||
|
|||||||
Reference in New Issue
Block a user