Compare commits

..

1 commit

Author SHA1 Message Date
Felix Schröter ced0614551
fix: fix git permissions for system.autoUpgrade 2025-01-19 12:14:27 +01:00
2 changed files with 29 additions and 1 deletions

28
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,28 @@
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

View file

@ -25,7 +25,7 @@ in
programs.git = {
enable = true;
config.safe.directory = [ "/etc/nixos" ];
config.safeDirectory = [ "/etc/nixos" ];
};
systemd.services.nixos-upgrade.preStart = ''