git.iko.soy/typeable/nixpkgs
on master help sign in
unbound service: do not initialize root cert
bf0e745Arnold Krille
nixos/modules/services/networking/unbound.nix+2
@@ -106,8 +106,10 @@ in
106 preStart = ''
106 preStart = ''
107 mkdir -m 0755 -p ${stateDir}/dev/
107 mkdir -m 0755 -p ${stateDir}/dev/
108 cp ${confFile} ${stateDir}/unbound.conf
108 cp ${confFile} ${stateDir}/unbound.conf
109+ ${optionalString cfg.enableRootTrustAnchor ''
109 ${pkgs.unbound}/bin/unbound-anchor -a ${rootTrustAnchorFile}
110 ${pkgs.unbound}/bin/unbound-anchor -a ${rootTrustAnchorFile}
110 chown unbound ${stateDir} ${rootTrustAnchorFile}
111 chown unbound ${stateDir} ${rootTrustAnchorFile}
112+ ''}
111 touch ${stateDir}/dev/random
113 touch ${stateDir}/dev/random
112 ${pkgs.utillinux}/bin/mount --bind -n /dev/random ${stateDir}/dev/random
114 ${pkgs.utillinux}/bin/mount --bind -n /dev/random ${stateDir}/dev/random
113 '';
115 '';