Christopher Bacher
c7048bf7ad
modules(pihole-container): add RestartSec to give the container time to be properly removed
...
The ExecStop from the previous commit was not enough the journald logs show that the container fails to restart because the old one is still around.
2022-10-17 01:29:48 +02:00
Christopher Bacher
d523a5c8e1
modules(pihole-container): expliclitly stop the container with podman
...
Currently the container often fails to startup again in a nixos-rebuild.
Maybe this is because the container lingers a bit after the systemd.service has already been stopped and the container from the restarted service can't be created.
The podman-stop command should delay the stopping of the service until the container is gone too.
2022-10-17 01:17:29 +02:00
Christopher Bacher
dde81d1e16
modules(pihole-container): add requires-dependency on network-online.target to systemd.service
2022-10-17 00:52:35 +02:00
Christopher Bacher
8ba929f20f
image(pihole): update to 2022.10
2022-10-16 22:53:32 +02:00
Christopher Bacher
8e7c14c52f
git(ignore): nix build output result
2022-10-16 18:46:50 +02:00
Christopher Bacher
575c4ae0dc
modules(pihole-container): extend the description for port configuration on the host
2022-10-16 18:38:18 +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
647d73908b
lib(util): toEnvValue converts list into the format '[A;B;C]'
2022-10-16 15:25:31 +02:00
Christopher Bacher
73aed13f87
modules(pihole-container): make newuidmap available to systemd service
...
See https://github.com/NixOS/nixpkgs/issues/138423
Potentially a security issue as `/run/wrappers/bin/` contains more commands often with suid bit set.
2022-10-15 21:50:59 +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
d15ee5c8fa
modules(pihole-container): add pihole systemd service description & option handling (dhcp still missing)
2022-10-14 01:34:29 +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