Commit graph

12 commits

Author SHA1 Message Date
Christopher Bacher
f4ff6d5e91 flake(description): minor rewording 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
f734aea139 flake/modules/lib: import lib in modules directly instead of passing it from the flake 2022-12-05 23:22:20 +01:00
Christopher Bacher
428baed6cf flake(linger): add linger-flaker to allow the pihole-flake to manage user lingering
Systemd's user lingering feature seems to be necessary to run rootless podman if the executing user is not logged in.
See https://github.com/NixOS/nixpkgs/issues/138423
2022-12-05 23:22:01 +01:00
Christopher Bacher
8ba929f20f image(pihole): update to 2022.10 2022-10-16 22:53:32 +02:00
Christopher Bacher
a1214c99d2 flake(devShell): make dig available to test the pihole DNS 2022-10-16 18:21:35 +02:00
Christopher Bacher
c1ab2461ac module(pihole-container): improve the module's options by adding better defaults and the environment variable names which are controlled by the options 2022-10-14 01:33:19 +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
Christopher Bacher
1a4551ff17 module(pihole-container): rename module to pihole 2022-10-09 19:57:58 +02:00
Christopher Bacher
7174f824d6 module(pihole-container): make it a module factory; WIP: start adding systemd service
The factory function returns the pihole module and allows to pass the flake itself to refer to its outputs.
2022-10-09 19:05:10 +02:00
Christopher Bacher
1b5d13c510 module(pihole-container): add option declarations for the module + add module to flake 2022-10-04 00:19:12 +02:00
Christopher Bacher
ef77de3abd flake(pihole): build pihole docker image (x86_64 & aarch64) + basic devShell for updating image info 2022-09-25 22:15:27 +02:00