nixpkgs
nixpkgs copied to clipboard
[Question] hostsblock: dbus for systemd services ? how is it installed?
Issue description
I am trying to install a blocklist set for my dnsmasq server on my nixos system.
I am used to NoTracking's bundle, which is a single file installed in /etc or wherever else.
From what I understand from the provided derivation for hostsblock, it installs two binaries in the global store, and expects us to run them to build the list. It also provides a service file and a timer to (supposedly) automatically update said list.
However, it's being installed in a dbus folder, and while I do have experience managing a raw systemd daemon, I have no dbus experience and I haven't been able to find anything about this online...
- How am I supposed to start/manage the timer / oneshot list-building service ?
- How am I supposed to allow editing the postupdate hook that is defined line 58 of the derivation ? (here, I would like to reload the dnsmasq service)
Otherwise, would it be possible to package NoTracking's version?
Thanks!
Technical details
- system:
"x86_64-linux"
- host os:
Linux 5.15.43, NixOS, 22.05 (Quokka), 22.05.481.40e2b1ae053
- multi-user?:
yes
- sandbox:
yes
- version:
nix-env (Nix) 2.8.1
- nixpkgs:
/nix/var/nix/profiles/per-user/root/channels/nixos