From f55307fd73af235069744dd5155fda0bc73fe613 Mon Sep 17 00:00:00 2001 From: lassulus Date: Thu, 7 Sep 2023 12:26:31 +0200 Subject: lass: migrate away --- lass/3modules/dnsmasq.nix | 48 ----------------------------------------------- 1 file changed, 48 deletions(-) delete mode 100644 lass/3modules/dnsmasq.nix (limited to 'lass/3modules/dnsmasq.nix') diff --git a/lass/3modules/dnsmasq.nix b/lass/3modules/dnsmasq.nix deleted file mode 100644 index 83a9cb180..000000000 --- a/lass/3modules/dnsmasq.nix +++ /dev/null @@ -1,48 +0,0 @@ -{ config, lib, pkgs, ... }: - -with builtins; -with lib; - -let - cfg = config.lass.dnsmasq; - - out = { - options.lass.dnsmasq = api; - config = mkIf cfg.enable imp; - }; - - api = { - enable = mkEnableOption "dnsmasq"; - config = mkOption { - type = types.str; - #TODO: find a good default - default = '' - ''; - description = "configuration dnsmasq is started with"; - }; - }; - - configFile = pkgs.writeText "dnsmasq.conf" cfg.config; - - imp = { - - systemd.services.dnsmasq = { - description = "dnsmasq"; - after = [ "network.target" ]; - wantedBy = [ "multi-user.target" ]; - - path = with pkgs; [ - dnsmasq - ]; - - - restartIfChanged = true; - - serviceConfig = { - Restart = "always"; - ExecStart = "${pkgs.dnsmasq}/bin/dnsmasq -k -C ${configFile}"; - }; - }; - }; - -in out -- cgit v1.2.3