mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 01:17:42 -04:00
Compare commits
2 commits
f830613ded
...
ea8b9efaaf
| Author | SHA1 | Date | |
|---|---|---|---|
| ea8b9efaaf | |||
| 0dea1aab28 |
6 changed files with 15 additions and 9 deletions
1
.gitattributes
vendored
1
.gitattributes
vendored
|
|
@ -1,2 +1,3 @@
|
|||
*.yaml diff=sopsdiffer
|
||||
.pre-commit-config.yaml diff=default
|
||||
|
||||
|
|
|
|||
6
.github/workflows/validate.yml
vendored
6
.github/workflows/validate.yml
vendored
|
|
@ -18,10 +18,10 @@ jobs:
|
|||
run: nix flake show
|
||||
|
||||
- name: Check formatting
|
||||
run: nix fmt --check .
|
||||
run: nix fmt -- --ci .
|
||||
|
||||
- name: Run deadnix
|
||||
run: deadnix ./modules ./lib
|
||||
run: nix run nixpkgs#deadnix ./modules ./lib
|
||||
|
||||
- name: Run statix
|
||||
run: statix check ./modules ./lib
|
||||
run: nix run nixpkgs#statix check -- .
|
||||
|
|
|
|||
|
|
@ -3,11 +3,11 @@ repos:
|
|||
hooks:
|
||||
- id: nixfmt
|
||||
name: nixfmt
|
||||
entry: nixfmt
|
||||
entry: nix
|
||||
language: system
|
||||
types: [nix]
|
||||
pass_filenames: false
|
||||
args: ["."]
|
||||
args: ["fmt"]
|
||||
|
||||
- id: deadnix
|
||||
name: deadnix
|
||||
|
|
@ -16,3 +16,10 @@ repos:
|
|||
types: [nix]
|
||||
args: ["./modules", "./lib"]
|
||||
|
||||
- id: statix
|
||||
name: statix
|
||||
entry: statix
|
||||
language: system
|
||||
types: [nix]
|
||||
args: ["check", "--", "."]
|
||||
|
||||
|
|
|
|||
|
|
@ -60,8 +60,6 @@ creation_rules:
|
|||
key_groups:
|
||||
- age:
|
||||
- *system_rainbow_planet
|
||||
- path_regex: ^\.pre-commit-config\.yaml$
|
||||
# Plain YAML file, not encrypted
|
||||
- path_regex: modules/shared/secrets.yaml$
|
||||
key_groups:
|
||||
- age:
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@
|
|||
];
|
||||
in
|
||||
{
|
||||
formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.nixfmt);
|
||||
formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.nixfmt-tree);
|
||||
|
||||
# Darwin (macOS) hosts
|
||||
darwinConfigurations = {
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ in
|
|||
nodejs
|
||||
nurl
|
||||
nvd
|
||||
nixfmt
|
||||
nixfmt-tree
|
||||
onefetch
|
||||
powershell
|
||||
pre-commit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue