trust-dns: migrate module to nixpkgs repo
This commit is contained in:
parent
ffec91a52c
commit
e38bf42506
|
@ -1,16 +1,16 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
sane.services.trust-dns.enable = true;
|
services.trust-dns.enable = true;
|
||||||
|
|
||||||
sane.services.trust-dns.settings.listen_addrs_ipv4 = [
|
services.trust-dns.settings.listen_addrs_ipv4 = [
|
||||||
# specify each address explicitly, instead of using "*".
|
# specify each address explicitly, instead of using "*".
|
||||||
# this ensures responses are sent from the address at which the request was received.
|
# this ensures responses are sent from the address at which the request was received.
|
||||||
config.sane.hosts.by-name."servo".lan-ip
|
config.sane.hosts.by-name."servo".lan-ip
|
||||||
"10.0.1.5"
|
"10.0.1.5"
|
||||||
];
|
];
|
||||||
sane.services.trust-dns.quiet = true;
|
services.trust-dns.quiet = true;
|
||||||
# sane.services.trust-dns.debug = true;
|
# services.trust-dns.debug = true;
|
||||||
|
|
||||||
sane.ports.ports."53" = {
|
sane.ports.ports."53" = {
|
||||||
protocol = [ "udp" "tcp" ];
|
protocol = [ "udp" "tcp" ];
|
||||||
|
@ -61,13 +61,13 @@
|
||||||
|
|
||||||
# we need trust-dns to load our zone by relative path instead of /nix/store path
|
# we need trust-dns to load our zone by relative path instead of /nix/store path
|
||||||
# because we generate it at runtime.
|
# because we generate it at runtime.
|
||||||
sane.services.trust-dns.settings.zones = [
|
services.trust-dns.settings.zones = [
|
||||||
{
|
{
|
||||||
zone = "uninsane.org";
|
zone = "uninsane.org";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
sane.services.trust-dns.package =
|
services.trust-dns.package =
|
||||||
let
|
let
|
||||||
sed = "${pkgs.gnused}/bin/sed";
|
sed = "${pkgs.gnused}/bin/sed";
|
||||||
zone-dir = "/var/lib/trust-dns";
|
zone-dir = "/var/lib/trust-dns";
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
./kiwix-serve.nix
|
./kiwix-serve.nix
|
||||||
./mautrix-signal.nix
|
./mautrix-signal.nix
|
||||||
./nixserve.nix
|
./nixserve.nix
|
||||||
./trust-dns.nix
|
# XXX: partially lifted into nixpkgs repo: remove once upstreamed
|
||||||
|
# ./trust-dns.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -226,6 +226,12 @@ in [
|
||||||
hash = "sha256-njSTwVvUkmzmJcN2oGkv7VZA92lr4HS8cDPVpKRE+0w=";
|
hash = "sha256-njSTwVvUkmzmJcN2oGkv7VZA92lr4HS8cDPVpKRE+0w=";
|
||||||
})
|
})
|
||||||
|
|
||||||
|
(fetchpatch' {
|
||||||
|
title = "nixos/trust-dns: init";
|
||||||
|
saneCommit = "4c801fa25278faceb1ccb0273bc58111bfb3d42e";
|
||||||
|
hash = "sha256-CHbEos/rPmy5WmE4xuZhYL6IqjXZui2iuMQWzmmlE0E=";
|
||||||
|
})
|
||||||
|
|
||||||
# (fetchpatch' {
|
# (fetchpatch' {
|
||||||
# # N.B.: compiles, but runtime error on launch suggestive of some module not being shipped
|
# # N.B.: compiles, but runtime error on launch suggestive of some module not being shipped
|
||||||
# title = "matrix-appservice-irc: 0.38.0 -> 1.0.0";
|
# title = "matrix-appservice-irc: 0.38.0 -> 1.0.0";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user