summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-04-19 18:13:33 +0200
committerAlan Pearce2024-04-19 18:13:33 +0200
commitf7c0441e7ab6666a0a7c4c727b1c4feb47f74912 (patch)
tree8cf1cfed5f4bac453102e8a5c3107469bfed33cd
parent64ffd1553c9d9c4aa05634c1f4c9e3a41ae2ddd4 (diff)
downloadnixfiles-f7c0441e7ab6666a0a7c4c727b1c4feb47f74912.tar.lz
nixfiles-f7c0441e7ab6666a0a7c4c727b1c4feb47f74912.tar.zst
nixfiles-f7c0441e7ab6666a0a7c4c727b1c4feb47f74912.zip
docker: enable registry logins (incl. via skopeo)
-rw-r--r--system/settings/programs/docker.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/system/settings/programs/docker.nix b/system/settings/programs/docker.nix
index d7c6a88e..88238726 100644
--- a/system/settings/programs/docker.nix
+++ b/system/settings/programs/docker.nix
@@ -1,4 +1,7 @@
-{ ... }: {
+{ pkgs, ... }: {
+  virtualisation.containers = {
+    enable = true;
+  };
   virtualisation.docker = {
     enable = false;
     storageDriver = "overlay2";
@@ -15,6 +18,9 @@
       };
     };
   };
+  environment.systemPackages = with pkgs; [
+    docker-credential-helpers
+  ];
   # TODO: autoPrune doesn't affect rootless
   # systemd.timers.docker-prune.timerConfig = {
   #   Persistent = true;