Commit graph

7 commits

Author SHA1 Message Date
9b3c078319
Add linting, formatting, and CI with fixes for all warnings
Infrastructure:
- Add deadnix, nixfmt, and statix to flake inputs
- Add formatter output to flake for nix fmt support
- Add deadnix, nixfmt, statix to Home Manager packages
- Add GitHub Actions workflow for CI validation
- Add .pre-commit-config.yaml with hooks for nixfmt, deadnix, and statix
- Support x86_64-darwin in formatter

Statix fixes (W10/W20 warnings):
- Remove unused lambda argument from nixpkgs-settings.nix
- Merge repeated keys in hardware-configuration.nix files (boot.initrd, boot, fileSystems)
- Merge repeated keys in nixnuc/default.nix (services, virtualisation)
- Merge repeated keys in rainbow-planet/default.nix (desktopManager)
- Merge repeated keys in home/general/default.nix (home)

Deadnix fixes (unused declarations):
- Remove unused pkgs/lib/username/http_port arguments from various files
- Fix unused final parameter in overlay functions (final -> _final)

CI/pre-commit fixes:
- Fix pre-commit statix config: add pass_filenames: false
- Fix CI workflow: use nix run nixpkgs# prefix and --ci flag for nixfmt
2026-03-20 22:29:46 -04:00
33bbf715b5
Add lsof 2026-02-07 15:30:09 -05:00
a2799f5e54 Build a new monitoring stack 2026-01-31 23:09:56 -05:00
de73b2dc27
Monitoring time with Grafana & Prometheus 2025-01-14 21:22:35 -05:00
eead479245 Pass inputs around instead of each individual input 2024-12-04 21:39:03 -05:00
1eb75018d3 Change Audiobookshelf mountpoint to service's default
This is being done as a step before moving to the nix version of ABS.
That change would be included here too, but I ran into a bug:

```
[2024-12-02 19:53:46.433] FATAL: [Server] Unhandled rejection: [Error: EACCES: permission denied, mkdir '/metadata'] {
  errno: -13,
  code: 'EACCES',
  syscall: 'mkdir',
  path: '/metadata'
}
promise: Promise {
  <rejected> [Error: EACCES: permission denied, mkdir '/metadata'] {
    errno: -13,
    code: 'EACCES',
    syscall: 'mkdir',
    path: '/metadata'
  }
}

```

No idea why yet so the container lives on.

To setup the mountpoint, I ran `zfs set mountpoint=legacy
orico/audiobookshelf` and created the directory used as the mount in the
`fileSystems` section.
2024-12-02 21:43:50 -05:00
493ac02c33 Setup nixnuc, rework home manager files 2023-12-16 22:50:07 -05:00