flake: reformat with nixfmt

This commit is contained in:
Infinidoge 2025-01-28 20:33:04 -05:00
parent a79e641851
commit eaf4f56ac0
Signed by: Infinidoge
SSH key fingerprint: SHA256:oAMyvotlNFraMmZmr+p6AxnNfW/GioTs1pOn3V4tQ7A
117 changed files with 2667 additions and 1592 deletions

View file

@ -1,13 +1,13 @@
{ lib, ... }:
let
mkTemplate = name:
mkTemplate =
name:
let
path = ./. + "/${name}";
flakePath = path + "/flake.nix";
meta = if builtins.pathExists flakePath then import flakePath else { };
in
{ inherit path; }
// lib.optionalAttrs (meta ? description) { inherit (meta) description; };
{ inherit path; } // lib.optionalAttrs (meta ? description) { inherit (meta) description; };
templates = lib.attrNames (lib.filterAttrs (_: type: type == "directory") (builtins.readDir ./.));
in