mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
service/blocky: init dumy service
This commit is contained in:
parent
6d0b676cce
commit
e07f19eae0
2 changed files with 33 additions and 0 deletions
32
modules/services/blocky/default.nix
Normal file
32
modules/services/blocky/default.nix
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
# Fast and lightweight DNS proxy as ad-blocker for local network
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.my.services.blocky;
|
||||||
|
domain = config.networking.domain;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.my.services.blocky = with lib; {
|
||||||
|
enable = mkEnableOption "Blocky DNS Server";
|
||||||
|
|
||||||
|
settings = mkOption {
|
||||||
|
type = (pkgs.formats.json { }).type;
|
||||||
|
default = { };
|
||||||
|
example = {
|
||||||
|
"tlsPort" = ":853";
|
||||||
|
};
|
||||||
|
description = ''
|
||||||
|
Override settings.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
services.blocky = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
"tlsPort" = ":853";
|
||||||
|
} // cfg.settings;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -2,6 +2,7 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./backup
|
./backup
|
||||||
|
#./blocky
|
||||||
./freshrss
|
./freshrss
|
||||||
./gitea
|
./gitea
|
||||||
./hedgedoc
|
./hedgedoc
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue