Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/nix-validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Validate Nix flake and configs

on:
pull_request:
push:
branches:
- main

permissions:
contents: read

jobs:
validate:
runs-on: ubuntu-latest
timeout-minutes: 30

steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4

- name: Install Nix
uses: cachix/install-nix-action@8aa03977d8d733052d78f4e008a241fd1dbf36b3 # v31

- name: Validate flake checks
run: nix flake check --system x86_64-linux

- name: Validate NixOS configuration evaluation
run: nix eval .#nixosConfigurations.desktop.config.system.build.toplevel.drvPath

- name: Validate Home Manager evaluation
run: nix eval .#nixosConfigurations.desktop.config.home-manager.users.alice.home.activationPackage.drvPath
Loading