feat: introduce treefmt and fmt all
This commit is contained in:
parent
80250b0179
commit
5d5282a914
213 changed files with 4967 additions and 4423 deletions
|
@ -7,12 +7,14 @@
|
|||
system,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
cfg = config.steveej.k3s;
|
||||
|
||||
# TODO: make this configurable
|
||||
homeUser = "steveej";
|
||||
in {
|
||||
in
|
||||
{
|
||||
options.steveej.k3s = {
|
||||
enable = lib.mkOption {
|
||||
description = "steveej's k3s distro";
|
||||
|
@ -22,13 +24,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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue