From 4bcff8ed1b82cac0d13a9d2be81379142596d563 Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Thu, 22 Dec 2022 11:35:17 +0100 Subject: [PATCH] Fix NVidia stuff, add insecure registries to docker --- machines/mimir/configuration.nix | 3 +++ machines/mimir/hardware-configuration.nix | 6 +++++- modules/docker/default.nix | 4 ++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/machines/mimir/configuration.nix b/machines/mimir/configuration.nix index 8a34721..cf9bef1 100644 --- a/machines/mimir/configuration.nix +++ b/machines/mimir/configuration.nix @@ -89,6 +89,9 @@ # sccache server 10501 + + # Celantur + 7000 ]; }; }; diff --git a/machines/mimir/hardware-configuration.nix b/machines/mimir/hardware-configuration.nix index 6b51c19..9b7bcf2 100644 --- a/machines/mimir/hardware-configuration.nix +++ b/machines/mimir/hardware-configuration.nix @@ -41,7 +41,11 @@ hardware = { video.hidpi.enable = true; enableAllFirmware = true; - nvidia.modesetting.enable = true; + nvidia = { + modesetting.enable = true; + powerManagement.enable = true; + forceFullCompositionPipeline = true; + }; opengl = { driSupport32Bit = true; diff --git a/modules/docker/default.nix b/modules/docker/default.nix index c481b2e..7b4fb55 100644 --- a/modules/docker/default.nix +++ b/modules/docker/default.nix @@ -24,6 +24,10 @@ in enable = true; dates = "weekly"; }; + + daemon.settings = { + insecure-registries = config.virtualisation.containers.registries.insecure; + }; }; virtualisation.containers = {