From a7475411e0ca651b4478f18a74a8bdeec16ee375 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Tue, 10 Jun 2025 21:29:15 -0500 Subject: [PATCH 1/4] Try to build and push separately --- .gitlab-ci.yml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4d98d16..4bb4245 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,7 @@ stages: - eval - build + - push default: tags: @@ -24,13 +25,27 @@ default: "Build image": stage: build - parallel: + parallel: ¶llel matrix: - IMG: - img-bitwarden + artifacts: + paths: + - "*.tar.gz" script: - nix run "nixpkgs#podman" -- login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY" - nix build ".#${IMG}" - - nix run "nixpkgs#podman" -- load -i result - - nix run "nixpkgs#podman" -- tag "localhost/${IMG}:latest" "$CI_REGISTRY/greg/ci-images/${IMG}:latest" - - nix run "nixpkgs#podman" -- push "$CI_REGISTRY/greg/ci-images/${IMG}:latest" + - cp -L result "${IMG}.tar.gz" + +"Push Image": + stage: push + parallel: *parallel + dependencies: + - "Build image" + image: podman:latest + tags: + - kubernetes + script: + - podman load -i "${IMG}.tar.gz" + - podman tag "localhost/${IMG}:latest" "$CI_REGISTRY/greg/ci-images/${IMG}:latest" + - podman push "$CI_REGISTRY/greg/ci-images/${IMG}:latest" From 559d619abd4cbc1fab7bc417c844bfc95da0dca3 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Tue, 10 Jun 2025 21:48:12 -0500 Subject: [PATCH 2/4] Fix path to auth file --- hosts/baseline.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts/baseline.nix b/hosts/baseline.nix index 8516eee..df752cb 100644 --- a/hosts/baseline.nix +++ b/hosts/baseline.nix @@ -210,7 +210,7 @@ in shell = config.programs.xonsh.package; initialPassword = "password"; openssh.authorizedKeys.keys = lib.strings.splitString "\n" ( - builtins.readFile ../../home/ssh/authorized_keys + builtins.readFile ../home/ssh/authorized_keys ); }; From f99751ecea0cd8585a5b29c28598554308359c9a Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Tue, 10 Jun 2025 21:48:41 -0500 Subject: [PATCH 3/4] Disable Isaiah runner for now --- hosts/isaiah/default.nix | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/hosts/isaiah/default.nix b/hosts/isaiah/default.nix index 472c8dc..31cc0dc 100644 --- a/hosts/isaiah/default.nix +++ b/hosts/isaiah/default.nix @@ -1,5 +1,4 @@ { - config, lib, top, ... @@ -75,18 +74,6 @@ }; services = { - gitlab-runner = { - enable = true; - settings = { - concurrent = 5; - }; - services = { - kubernetes = { - authenticationTokenConfigFile = config.age.secrets.runner-reg.path; - executor = "shell"; - }; - }; - }; k3s.clusterInit = true; # This is the first node in the cluster openssh = { enable = true; From 10a0e1d3a94f1253f6425937b602f4d7ced8e56c Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Tue, 10 Jun 2025 23:20:00 -0500 Subject: [PATCH 4/4] Fix building of home and remove cursor --- home/default.nix | 16 +++++------ home/home.nix | 60 ++++++++++++++++++++++++---------------- hosts/exodus/default.nix | 3 -- 3 files changed, 44 insertions(+), 35 deletions(-) diff --git a/home/default.nix b/home/default.nix index cc4db7b..5d1369b 100644 --- a/home/default.nix +++ b/home/default.nix @@ -13,10 +13,8 @@ let allowUnfreePredicate = _: true; }; }); - ivr = - let - system = "aarch64-darwin"; - in + user = + system: host: username: top.hmunstable.lib.homeManagerConfiguration { pkgs = pkgs system; modules = [ @@ -24,15 +22,17 @@ let ./home.nix ]; extraSpecialArgs = { - inherit top; + inherit top host username; nixvim = top.nixvimunstable; gui = false; gnome = false; - host = "ivr"; - username = "gregory.hellings"; }; }; + greg = host: (user "x86_64-linux" host "greg"); in { - "MacBook-Pro.local" = ivr; + "MacBook-Pro.local" = user "aarch64-darwin" "ivr" "gregory.hellings"; + exodus = greg "exodus"; + jude = greg "jude"; + isaiah = greg "isaiah"; } diff --git a/home/home.nix b/home/home.nix index 114514c..1125e3a 100644 --- a/home/home.nix +++ b/home/home.nix @@ -3,9 +3,18 @@ lib, host ? "most", top, + username, ... }: - +let + homeDirectory = + if pkgs.stdenv.hostPlatform.isDarwin then + "/Users/${username}" + else if username == "root" then + "/root" + else + "/home/${username}"; +in { imports = [ top.nixvimunstable.homeManagerModules.nixvim @@ -13,30 +22,33 @@ ./baseline ] ++ lib.optionals (builtins.pathExists ./hosts/${host}) [ ./hosts/${host} ]; - home.stateVersion = "25.05"; + home = { + inherit homeDirectory username; - home.packages = with pkgs; [ - copier - diffutils - findutils - gh - git - gnupatch - hms - btop - inetutils - jq - nano - nix-prefetch - nmap - openssl - setup-ssh - tmux - tree - unzip - wget - zip - ]; + packages = with pkgs; [ + copier + diffutils + findutils + gh + git + gnupatch + hms + btop + inetutils + jq + nano + nix-prefetch + nmap + openssl + setup-ssh + tmux + tree + unzip + wget + zip + ]; + stateVersion = "25.05"; + }; programs.tmux = { enable = true; diff --git a/hosts/exodus/default.nix b/hosts/exodus/default.nix index b1730ad..3c6b83d 100644 --- a/hosts/exodus/default.nix +++ b/hosts/exodus/default.nix @@ -1,7 +1,6 @@ { config, lib, - pkgs, top, ... }: @@ -23,8 +22,6 @@ ]; }; - environment.defaultPackages = [ pkgs.code-cursor ]; - greg = { home = true; gnome.enable = true;