Skip to content

Commit

Permalink
chore: configure yamlfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
terlar committed Sep 30, 2024
1 parent 2fa0058 commit f70d9f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 18 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
---
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
changes:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -39,7 +36,6 @@ jobs:
- 'configurations/nixos/installer-yubikey/**'
- 'packages/drduh-gpg-conf/**'
- 'packages/drduh-yubikey-guide/**'
check:
runs-on: ubuntu-latest
steps:
Expand All @@ -51,17 +47,14 @@ jobs:
http-connections = 50
max-jobs = auto
diagnostic-endpoint: ''

- uses: cachix/cachix-action@ad2ddac53f961de1989924296a1f236fcfbaa4fc # v15
with:
useDaemon: true
name: terlar
extraPullNames: cuda-maintainers
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'

- name: Check
run: nix flake check

build-home-configuration:
needs: changes
if: ${{ needs.changes.outputs.home-configuration == 'true' }}
Expand All @@ -80,18 +73,15 @@ jobs:
http-connections = 50
max-jobs = auto
diagnostic-endpoint: ''

- uses: cachix/cachix-action@ad2ddac53f961de1989924296a1f236fcfbaa4fc # v15
with:
useDaemon: true
name: terlar
extraPullNames: cuda-maintainers
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'

- name: Build activation package
run: |
nix build --print-build-logs .#homeConfigurations.${{ matrix.username }}.activationPackage
build-nixos-configuration:
needs: changes
if: ${{ needs.changes.outputs.nixos-configuration == 'true' }}
Expand All @@ -110,18 +100,15 @@ jobs:
http-connections = 50
max-jobs = auto
diagnostic-endpoint: ''

- uses: cachix/cachix-action@ad2ddac53f961de1989924296a1f236fcfbaa4fc # v15
with:
useDaemon: true
name: terlar
extraPullNames: cuda-maintainers
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'

- name: Build system
run: |
nix build --print-build-logs .#nixosConfigurations.${{ matrix.host }}.config.system.build.toplevel
build-iso:
needs: changes
if: ${{ needs.changes.outputs.installer-yubikey == 'true' }}
Expand All @@ -139,15 +126,13 @@ jobs:
http-connections = 50
max-jobs = auto
diagnostic-endpoint: ''

- uses: cachix/cachix-action@ad2ddac53f961de1989924296a1f236fcfbaa4fc # v15
with:
useDaemon: true
name: terlar
extraPullNames: cuda-maintainers
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
skipPush: true

- name: Build ISO
run: |
GC_DONT_GC=1 nix build --print-build-logs .#nixosConfigurations.${{ matrix.name }}.config.system.build.isoImage
8 changes: 5 additions & 3 deletions dev/flake-module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@
perSystem =
{ pkgs, ... }:
{
treefmt = {
programs.nixfmt = {
treefmt.programs = {
nixfmt = {
enable = true;
package = pkgs.nixfmt-rfc-style;
};
programs.fish_indent.enable = true;

fish_indent.enable = true;
yamlfmt.enable = true;
};

devshells.default = {
Expand Down

0 comments on commit f70d9f4

Please sign in to comment.