11 Commits

Author SHA1 Message Date
1de77b189d fix: flake url warning 2024-03-02 10:13:37 -05:00
557d704a1b feat: Better y axes definition 2024-02-24 20:05:11 -05:00
b1b65bbbec main: the module needs to ignore unused args 2024-02-23 11:24:37 -05:00
Lucas Bergman
94b05b1437 maint: NixOS module writes config to the Nix store
Instead of writing the config attrset to a YAML file to a fixed path in /etc,
this makes the NixOS module write to a (content-addressed) config file in the
Nix store. We just use builtins.toJSON since YAML is a superset of JSON.
2024-02-20 07:58:03 -06:00
Lucas Bergman
668015ed17 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-20 07:53:13 -06:00
Lucas Bergman
63b4f810c2 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 20:32:19 -06:00
Lucas Bergman
fe162968e5 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 20:31:47 -06:00
18eb50fbbd feat: use a js template literal for trace name 2024-02-19 19:15:34 -05: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