Skip to content

Commit 0b07925

Browse files
committed
feat: add nix flake check
1 parent c6b8d83 commit 0b07925

File tree

3 files changed

+11
-40
lines changed

3 files changed

+11
-40
lines changed

.github/workflows/flake-check.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
name: Nix Flake Check
1+
name: Flake Check
22

33
on:
4+
pull_request:
45
push:
5-
branches:
6-
- main
6+
branches: [main]
77

88
jobs:
99
flake-check:
1010
runs-on: ubuntu-latest
11-
1211
permissions:
13-
contents: write
12+
contents: read
1413

1514
steps:
1615
- name: Checkout repository
@@ -22,13 +21,11 @@ jobs:
2221
extra_nix_config: |
2322
accept-flake-config = true
2423
25-
- name: Run statix (lint)
26-
run: nix develop -c statix check --config ./.statix.toml .
24+
- name: Cache Nix store
25+
uses: DeterminateSystems/magic-nix-cache-action@v7
2726

28-
- name: Run formatter
29-
run: nix develop -c nix fmt .
27+
- name: Statix (lint)
28+
run: nix develop -c statix check --config ./.statix.toml .
3029

31-
- name: Commit lint/format fixes
32-
uses: stefanzweifel/git-auto-commit-action@v5
33-
with:
34-
commit_message: "Auto lint/format"
30+
- name: Flake check
31+
run: nix flake check --show-trace

.github/workflows/lint-format.yaml

Lines changed: 0 additions & 26 deletions
This file was deleted.

home/desktop/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ in
3535
};
3636

3737
config = lib.mkIf cfg.enable {
38-
foot.enable = lib.mkDefault cfg.ghostty.enable;
38+
foot.enable = lib.mkDefault cfg.foot.enable;
3939
ghostty.enable = lib.mkDefault cfg.ghostty.enable;
4040
gtk-theme.enable = lib.mkDefault cfg.gtk-theme.enable;
4141
hyprland.enable = lib.mkDefault cfg.hyprland.enable;

0 commit comments

Comments
 (0)