From 3fb75682fc82b05a9af440046d8467e1446fecf8 Mon Sep 17 00:00:00 2001 From: JuliusFreudenberger Date: Sat, 10 May 2025 22:31:33 +0300 Subject: [PATCH 1/2] Add docker-credential-helpers when docker is enabled --- modules/cli-essentials.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/cli-essentials.nix b/modules/cli-essentials.nix index 94255d6..faa63dc 100644 --- a/modules/cli-essentials.nix +++ b/modules/cli-essentials.nix @@ -1,6 +1,7 @@ { pkgs, lib, + config, ... }: { environment.systemPackages = with pkgs; [ @@ -14,7 +15,7 @@ pdfgrep pdftk p7zip - ]; + ] ++ lib.optionals config.virtualisation.docker.enable [ docker-credential-helpers ]; programs = { htop.enable = true; From dab5645664358b4301d1798ceea52363db9ba60e Mon Sep 17 00:00:00 2001 From: JuliusFreudenberger Date: Sun, 18 May 2025 00:46:06 +0300 Subject: [PATCH 2/2] Add julius user to trusted-users --- users/julius/nixos.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/users/julius/nixos.nix b/users/julius/nixos.nix index 95d532a..a424826 100644 --- a/users/julius/nixos.nix +++ b/users/julius/nixos.nix @@ -9,4 +9,6 @@ extraGroups = [ "wheel" "networkmanager" "docker" "libvirtd" ]; shell = pkgs.zsh; }; + + nix.settings.trusted-users = [ "julius" ]; }