mirror of
https://github.com/javalsai/lidm.git
synced 2025-08-31 02:18:00 +02:00
fmt(nix): add nix fmt
, fmt and update flake.lock
This commit is contained in:
@@ -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"
|
||||
)
|
||||
|
Reference in New Issue
Block a user