diff options
Diffstat (limited to 'users/Profpatsch/aerc.nix')
-rw-r--r-- | users/Profpatsch/aerc.nix | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/users/Profpatsch/aerc.nix b/users/Profpatsch/aerc.nix index d37d10eb4626..569f045a00dc 100644 --- a/users/Profpatsch/aerc.nix +++ b/users/Profpatsch/aerc.nix @@ -20,29 +20,10 @@ let deps = [ ]; } { - concatNewline = lib.concatStringsSep "\n"; aercFilter = name: "${aerc-patched}/share/aerc/filters/${name}"; - toIni = getSections: - lib.generators.toINIWithGlobalSection { } - (getSections { } toIniDhall); + toIni = depot.users.Profpatsch.toINI { }; }; - toIniDhall = { - newSection = { }; - add = key: val: sect: sect // { ${key} = val; }; - addAll = keyVals: sect: sect // builtins.listToAttrs keyVals; - newSectionList = { }; - addSection = key: val: sect: sect // { ${key} = val; }; - }; - - - ini-file = name: ini: lib.pipe ini [ - (lib.generators.toINI { }) - (pkgs.writeText name) - ]; - - binds-file = name: binds: pkgs.writeText name binds; - aerc-config = pkgs.linkFarm "alacritty-config" [ { name = "aerc/accounts.conf"; @@ -54,7 +35,7 @@ let } { name = "aerc/binds.conf"; - path = binds-file "binds.conf" config.binds; + path = pkgs.writeText "binds.conf" config.binds; } ]; |