anchor.diff:          mkdir -m 0755 -p ${stateDir}/dev/
           cp ${confFile} ${stateDir}/unbound.conf
           ${optionalString cfg.enableRootTrustAnchor ''
  -          ${pkgs.unbound}/bin/unbound-anchor -a ${rootTrustAnchorFile} || echo "Root anchor updated!"
  +          ${cfg.package}/bin/unbound-anchor -a ${rootTrustAnchorFile} || echo "Root anchor updated!"
             chown unbound ${stateDir} ${rootTrustAnchorFile}
           ''}
           touch ${stateDir}/dev/random
  
positive.code: 
    config = mkIf cfg.enable {
  
      environment.systemPackages = [ pkgs.unbound ];
  
      users.users.unbound = {
        description = "unbound daemon user";
  
negative.code:       '';
  
        serviceConfig = {
          ExecStart = "${cfg.package}/bin/unbound -d -c ${stateDir}/unbound.conf";
          ExecStopPost="${pkgs.utillinux}/bin/umount ${stateDir}/dev/random";
  
          ProtectSystem = true;
  