fmt(nix): add nix fmt, fmt and update flake.lock

This commit is contained in:
2025-07-07 02:38:04 +02:00
parent 3625aa9426
commit 4611ad87a8
6 changed files with 180 additions and 147 deletions

View File

@@ -1,13 +1,20 @@
{ cfg, src, lib, ... }:
{
cfg,
src,
lib,
...
}:
let
maker = import ./make-cfg.nix {
inherit lib;
keys-h-file = builtins.readFile "${src}/include/keys.h";
};
in builtins.toFile "lidm.conf" (
if builtins.isString cfg
then builtins.readFile "${src}/themes/${cfg}.ini"
else if builtins.isAttrs cfg
then maker.make cfg
else builtins.throw "invalid cfg type, expected str or attrs"
maker = import ./make-cfg.nix {
inherit lib;
keys-h-file = builtins.readFile "${src}/include/keys.h";
};
in
builtins.toFile "lidm.conf" (
if builtins.isString cfg then
builtins.readFile "${src}/themes/${cfg}.ini"
else if builtins.isAttrs cfg then
maker.make cfg
else
builtins.throw "invalid cfg type, expected str or attrs"
)