Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.yaml diff=sopsdiffer
.pre-commit-config.yaml diff=default

27 changes: 27 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Validate

on:
pull_request:

jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: cachix/install-nix-action@v26
with:
extra_nix_config: |
trusted-users = root @runner

- name: Validate flake
run: nix flake show

- name: Check formatting
run: nix fmt -- --ci .

- name: Run deadnix
run: nix run nixpkgs#deadnix ./modules ./lib

- name: Run statix
run: nix run nixpkgs#statix check -- .
26 changes: 26 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
repos:
- repo: local
hooks:
- id: nixfmt
name: nixfmt
entry: nix
language: system
types: [nix]
pass_filenames: false
args: ["fmt"]

- id: deadnix
name: deadnix
entry: deadnix
language: system
types: [nix]
args: ["./modules", "./lib"]

- id: statix
name: statix
entry: statix
language: system
types: [nix]
pass_filenames: false
args: ["check", "."]

2 changes: 1 addition & 1 deletion .sops.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ creation_rules:
key_groups:
- age:
- *system_rainbow_planet
- path_regex: modules/hosts/common/secrets.yaml$
- path_regex: modules/shared/secrets.yaml$
key_groups:
- age:
- *system_bigboy
Expand Down
2 changes: 0 additions & 2 deletions 2024-12-rework/.gitignore

This file was deleted.

25 changes: 0 additions & 25 deletions 2024-12-rework/configuration.nix

This file was deleted.

183 changes: 0 additions & 183 deletions 2024-12-rework/flake.lock

This file was deleted.

30 changes: 0 additions & 30 deletions 2024-12-rework/flake.nix

This file was deleted.

44 changes: 0 additions & 44 deletions 2024-12-rework/hardware-configuration.nix

This file was deleted.

9 changes: 0 additions & 9 deletions 2024-12-rework/nixpkgs-settings.nix

This file was deleted.

Loading
Loading