try out stylix

This commit is contained in:
Kopatz
2024-05-18 13:11:32 +02:00
parent 6707af7160
commit 4d23806037
13 changed files with 468 additions and 37 deletions

View 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
'';
};
};
}