6 Commits

Author SHA1 Message Date
Lucas Bergman
79bf02e1ff maint: Some Nix flake cleanups
Specifically:

  1. Switch from the nixosModule flake output (which is deprecated) to
     nixosModules.default
  2. Remove "with lib;" it's convenient, but I've gotten feedback when
     upstreaming module changes that that shouldn't be a thing in
     nixpkgs anymore
  3. Add a little type checking to the NixOS module options
  4. Switch the default config to empty (but leave the example)
  5. Use the convention "let cfg = config.services.heracles," a thing
     that's super common in NixOS
2024-02-19 18:06:35 -06:00
Lucas Bergman
e48d63e523 maint: Set formatter Nix flake output so nix fmt works
I've idly thought about making the formatter a derivation that runs alejandra
over Nix code, then rustfmt over Rust code, etc--so that just running `nix
fmt` in the root cleans up everything--but I haven't made that work yet.
2024-02-19 18:05:35 -06:00
Lucas Bergman
e2c57665d9 maint: Run nix stuff through the formatter
There are several choices for formatting Nix code, but IMHO alejandra is the
right kind of opinionated: <https://github.com/kamadorueda/alejandra>.
2024-02-19 17:47:25 -06:00
4a7109f249 maint: use rustls 2024-02-19 17:19:24 -05:00
8dc243b9a1 maint: linux nix builds? 2024-02-19 16:56:14 -05:00
a959280ed7 maint: Add a nix flake 2024-02-17 20:49:03 -05:00