try out stylix
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
imports = [
|
||||
./acme.nix
|
||||
./adguard.nix
|
||||
./dnsmasq.nix
|
||||
./ente.nix
|
||||
./kubernetes.nix
|
||||
./kavita.nix
|
||||
|
||||
26
modules/services/dnsmasq.nix
Normal file
26
modules/services/dnsmasq.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ config, pkgs, lib, inputs, ... }:
|
||||
with lib;
|
||||
let cfg = config.custom.services.dnsmasq;
|
||||
in {
|
||||
options.custom.services.dnsmasq = {
|
||||
enable = mkEnableOption "Enables dnsmaq service";
|
||||
server = mkOption { type = types.listOf types.string; };
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
#networking.resolvconf.enable = false;
|
||||
|
||||
services.dnsmasq = {
|
||||
enable = true;
|
||||
resolveLocalQueries = true;
|
||||
settings.server = cfg.server;
|
||||
extraConfig = ''
|
||||
interface=lo
|
||||
bind-interfaces
|
||||
listen-address=127.0.0.1
|
||||
cache-size=1000
|
||||
|
||||
no-negcache
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user