From 00dbb637e777fe5f70f807b2b55f0aae4a4cb10f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Schr=C3=B6ter?= <dev@felschr.com> Date: Sun, 19 Jan 2025 12:14:27 +0100 Subject: [PATCH 1/2] fix: fix git permissions for system.autoUpgrade --- system/nix.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/system/nix.nix b/system/nix.nix index 88ec7f2..6cdf0c9 100644 --- a/system/nix.nix +++ b/system/nix.nix @@ -23,6 +23,11 @@ in flake = "/etc/nixos"; }; + programs.git = { + enable = true; + config.safe.directory = [ "/etc/nixos" ]; + }; + systemd.services.nixos-upgrade.preStart = '' nix flake update --flake ${config.system.autoUpgrade.flake} ''; From b929d2186889ee33f8ff977b89ebd4545550ce0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Schr=C3=B6ter?= <dev@felschr.com> Date: Sun, 19 Jan 2025 12:27:43 +0100 Subject: [PATCH 2/2] build: remove .gitlab-ci.yml --- .gitlab-ci.yml | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 140fd42..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,28 +0,0 @@ -image: nixos/nix:2.9.1 - -variables: - NIX_CONFIG: "experimental-features = nix-command flakes" - -before_script: - - nix-env -iA cachix -f https://cachix.org/api/v1/install - - cachix use felschr - -stages: - - test - - build - -check: - stage: test - script: - - cachix watch-exec felschr nix flake check --no-build - -build: - stage: build - script: - - cachix watch-exec felschr nix build .#deconz - - cachix watch-exec felschr nix build .#nixosConfigurations.home-server.config.system.build.toplevel - # disabled because GitLab.com runner runs out of space - # - cachix watch-exec felschr nix build .#nixosConfigurations.home-pc.config.system.build.toplevel - only: - - main - allow_failure: true