this repo has no description
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

atcr

dawn 69f3aa27 30329f91

+81
+46
pkgs-set/pkgs/docker-credential-atcr.nix
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchurl, 5 + ... 6 + }: 7 + let 8 + version = "0.0.1"; 9 + sources = { 10 + "x86_64-linux" = { 11 + url = "https://tangled.org/evan.jarrett.net/at-container-registry/tags/v${version}/download/docker-credential-atcr_${version}_Linux_x86_64.tar.gz"; 12 + hash = "sha256-0LYmMJapSzc5IAcqS+9Uo7MqqjsAmsRdwOCLYqM6wC8="; 13 + }; 14 + "aarch64-linux" = { 15 + url = "https://tangled.org/evan.jarrett.net/at-container-registry/tags/v${version}/download/docker-credential-atcr_${version}_Linux_arm64.tar.gz"; 16 + hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="; 17 + }; 18 + }; 19 + source = sources.${stdenv.hostPlatform.system} or (throw "Unsupported platform: ${stdenv.hostPlatform.system}"); 20 + in 21 + stdenv.mkDerivation { 22 + pname = "docker-credential-atcr"; 23 + inherit version; 24 + 25 + src = fetchurl { 26 + inherit (source) url hash; 27 + }; 28 + 29 + sourceRoot = "."; 30 + 31 + dontBuild = true; 32 + 33 + installPhase = '' 34 + install -m755 -D docker-credential-atcr $out/bin/docker-credential-atcr 35 + ''; 36 + 37 + meta = { 38 + description = "Docker credential helper for AT Container Registry (atcr.io)"; 39 + homepage = "https://atcr.io"; 40 + platforms = [ 41 + "x86_64-linux" 42 + "aarch64-linux" 43 + ]; 44 + mainProgram = "docker-credential-atcr"; 45 + }; 46 + }
+3
users/mayer/default.nix
··· 127 127 "helix" 128 128 "git" 129 129 "ssh" 130 + "atcr" 130 131 ] 131 132 [ 132 133 # "zen" ··· 193 194 }; 194 195 195 196 fonts.fontconfig.enable = l.mkForce true; 197 + 198 + programs.atcr.enable = true; 196 199 197 200 programs.ssh.extraConfig = '' 198 201 Host nixos-shell
+32
users/modules/atcr/default.nix
··· 1 + { 2 + lib, 3 + config, 4 + terra, 5 + ... 6 + }: 7 + let 8 + l = lib; 9 + cfg = config.programs.atcr; 10 + in 11 + { 12 + options.programs.atcr = { 13 + enable = l.mkEnableOption "AT Container Registry credential helper"; 14 + configureDocker = l.mkOption { 15 + type = l.types.bool; 16 + default = true; 17 + description = "Configure docker to use atcr as credential helper for atcr.io"; 18 + }; 19 + }; 20 + 21 + config = l.mkIf cfg.enable { 22 + home.packages = [ terra.docker-credential-atcr ]; 23 + 24 + home.file.".docker/config.json" = l.mkIf cfg.configureDocker { 25 + text = builtins.toJSON { 26 + credHelpers = { 27 + "atcr.io" = "atcr"; 28 + }; 29 + }; 30 + }; 31 + }; 32 + }