flake: reformat with nixfmt
This commit is contained in:
parent
a79e641851
commit
eaf4f56ac0
117 changed files with 2667 additions and 1592 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue