Commit graph

6 commits

Author SHA1 Message Date
Christopher Bacher
4a2a0b86d6 modules(pihole-container): simplify exposing PiHole ports
Initially the PiHole module was supposed to provide an option to expose rootless PiHole on privileged ports s.t. the user does not have to find out/decide how to do it herself.
However, it seems to be out-of-scope for flake which should provide a rootless PiHole container.
Further, any decision taken on how to achieve this could limit the users choices for other system configuration options.
Inestead options for making PiHole available on priviledged ports should be described in the Readme and maybe in example configurations.
2022-12-05 23:23:32 +01:00
Christopher Bacher
17f09210bc modules(pihole-container): add options for configuring Pi-hole's FTLDNS component 2022-12-05 23:23:32 +01:00
Christopher Bacher
c536fb7293 refactor: move support functions to ./lib; change piholeConfiguration option to piholeConfig
The first part of the refactor simplifies the logic in the module and hides functions which are only used to extract container env vars.
Second the option renaming to piholeConfig unifies the naming with the hostConfig option.
2022-12-05 23:23:19 +01:00
Christopher Bacher
647d73908b lib(util): toEnvValue converts list into the format '[A;B;C]' 2022-10-16 15:25:31 +02:00
Christopher Bacher
41d400120d modules(pihole-container): extract helper function to lib & restructure lets 2022-10-15 21:49:30 +02:00
Christopher Bacher
1f8b3f5d1a lib(util): add functions for finding and acessing fragments ("paths") through a tree of attrSets 2022-10-14 01:29:48 +02:00