From 62aa95fa21493bfa681080c751763d3e0fa492a6 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 21 Dec 2024 18:44:13 +0100 Subject: athena: Enable Docker --- host/athena.nix | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/host/athena.nix b/host/athena.nix index f32fee7..bd203d0 100644 --- a/host/athena.nix +++ b/host/athena.nix @@ -78,16 +78,20 @@ }; }; - hardware.nvidia = { - open = true; - package = pkgs.linuxPackages.nvidia_x11; - prime = { - offload.enable = true; - - intelBusId = "PCI:0:2:0"; - nvidiaBusId = "PCI:1:0:0"; + hardware = { + nvidia = { + open = true; + package = pkgs.linuxPackages.nvidia_x11; + prime = { + offload.enable = true; + + intelBusId = "PCI:0:2:0"; + nvidiaBusId = "PCI:1:0:0"; + }; + powerManagement.enable = true; }; - powerManagement.enable = true; + + nvidia-container-toolkit.enable = true; }; environment.systemPackages = [ @@ -104,7 +108,15 @@ virtualisation = { libvirtd.enable = true; + docker = { + enable = true; + autoPrune = { + enable = true; + dates = "daily"; + }; + }; }; + users.users.common.extraGroups = [ "docker" ]; hardware.trackpoint = { enable = true; -- cgit v1.2.3