feat: introduce treefmt and fmt all

This commit is contained in:
steveej 2024-11-15 10:17:56 +01:00
parent 80250b0179
commit 27c6c4f9fa
237 changed files with 5440 additions and 5214 deletions

View file

@ -1,18 +1,18 @@
# experiment with k3s, nix-snapshotter, and nixos images
{
nodeFlake,
nodeFlakeInputs',
pkgs,
lib,
system,
config,
...
}: let
}:
let
cfg = config.steveej.k3s;
# TODO: make this configurable
homeUser = "steveej";
in {
in
# TODO: make this configurable
{
options.steveej.k3s = {
enable = lib.mkOption {
description = "steveej's k3s distro";
@ -22,13 +22,11 @@ in {
};
# (1) Import nixos module.
imports = [
nodeFlake.inputs.nix-snapshotter.nixosModules.default
];
imports = [ nodeFlake.inputs.nix-snapshotter.nixosModules.default ];
config = lib.mkIf cfg.enable {
# (2) Add overlay.
nixpkgs.overlays = [nodeFlake.inputs.nix-snapshotter.overlays.default];
nixpkgs.overlays = [ nodeFlake.inputs.nix-snapshotter.overlays.default ];
# (3) Enable service.
virtualisation.containerd = {