mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-21 10:10:40 -05:00
Aly Raffauf
deb36b44e1
Some checks are pending
flakehub / flakehub-publish (push) Waiting to run
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
* remove unused variables and nesting issues * more code cleanups and build fixes * cleanup sway * base/plymouth: removed unnecessary font override * hosts/common: remove unnecessary host checks
39 lines
1.2 KiB
YAML
39 lines
1.2 KiB
YAML
image: nixos/nix:latest
|
|
|
|
variables:
|
|
NIX_PATH: "nixpkgs=channel:nixos-unstable"
|
|
GIT_STRATEGY: clone
|
|
GIT_DEPTH: 1
|
|
|
|
stages:
|
|
- "Update"
|
|
- "Checks"
|
|
|
|
"Update inputs":
|
|
stage: "Update"
|
|
rules:
|
|
- if: $CI_PIPELINE_SOURCE == "schedule"
|
|
script:
|
|
- git clone https://${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git
|
|
- cd nixcfg
|
|
- git config --global user.email "${GIT_USER_EMAIL:-$GITLAB_USER_EMAIL}"
|
|
- git config --global user.name "${GIT_USER_NAME:-$GITLAB_USER_NAME}"
|
|
- nix --extra-experimental-features "nix-command flakes" flake update --commit-lock-file
|
|
- nix --extra-experimental-features "nix-command flakes" flake check
|
|
- git push https://${CI_PROJECT_NAMESPACE}:${CI_JOB_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git "${CI_DEFAULT_BRANCH}" -o ci.skip || echo "No changes to commit"
|
|
|
|
"Check formatting":
|
|
rules:
|
|
- if: $CI_PIPELINE_SOURCE == "push"
|
|
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
|
stage: "Checks"
|
|
script:
|
|
- nix --extra-experimental-features "nix-command flakes" fmt -- -c .
|
|
|
|
"Check evaluation":
|
|
rules:
|
|
- if: $CI_PIPELINE_SOURCE == "push"
|
|
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
|
stage: "Checks"
|
|
script:
|
|
- nix --extra-experimental-features "nix-command flakes" flake check |