summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2024-12-21 18:44:13 +0100
committerAdrian Kummerlaender2024-12-21 18:44:13 +0100
commit62aa95fa21493bfa681080c751763d3e0fa492a6 (patch)
tree5e0ff52e78724918dc40848412ccf2d1e7b30c96
parentd3c08c298070bd960ae1fd25e348f581b87129ac (diff)
downloadnixos_system-62aa95fa21493bfa681080c751763d3e0fa492a6.tar
nixos_system-62aa95fa21493bfa681080c751763d3e0fa492a6.tar.gz
nixos_system-62aa95fa21493bfa681080c751763d3e0fa492a6.tar.bz2
nixos_system-62aa95fa21493bfa681080c751763d3e0fa492a6.tar.lz
nixos_system-62aa95fa21493bfa681080c751763d3e0fa492a6.tar.xz
nixos_system-62aa95fa21493bfa681080c751763d3e0fa492a6.tar.zst
nixos_system-62aa95fa21493bfa681080c751763d3e0fa492a6.zip
athena: Enable Docker
-rw-r--r--host/athena.nix30
1 files 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;