alpha
Login
or
Join now
hermes.pds.lassul.us
/
superconfig
forked from
lass.pds.lassul.us/superconfig
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
remove legacy dnsmasq module
author
lassulus
date
2 years ago
(Feb 3, 2024, 4:03 AM CET)
commit
cca2e1b3
cca2e1b358996cce344e3ee0191dd5f730a9bf12
parent
fecd1361
fecd136146d9acab1c8cb19d0c95365840d16c3e
-49
2 changed files
Expand all
Collapse all
Unified
Split
3modules
default.nix
dnsmasq.nix
-1
3modules/default.nix
View file
Reviewed
···
1
1
_:
2
2
{
3
3
imports = [
4
4
-
./dnsmasq.nix
5
4
./drbd.nix
6
5
./folderPerms.nix
7
6
./klem.nix
-48
3modules/dnsmasq.nix
Reviewed
···
1
1
-
{ config, lib, pkgs, ... }:
2
2
-
3
3
-
with builtins;
4
4
-
with lib;
5
5
-
6
6
-
let
7
7
-
cfg = config.lass.dnsmasq;
8
8
-
9
9
-
out = {
10
10
-
options.lass.dnsmasq = api;
11
11
-
config = mkIf cfg.enable imp;
12
12
-
};
13
13
-
14
14
-
api = {
15
15
-
enable = mkEnableOption "dnsmasq";
16
16
-
config = mkOption {
17
17
-
type = types.str;
18
18
-
#TODO: find a good default
19
19
-
default = ''
20
20
-
'';
21
21
-
description = "configuration dnsmasq is started with";
22
22
-
};
23
23
-
};
24
24
-
25
25
-
configFile = pkgs.writeText "dnsmasq.conf" cfg.config;
26
26
-
27
27
-
imp = {
28
28
-
29
29
-
systemd.services.dnsmasq = {
30
30
-
description = "dnsmasq";
31
31
-
after = [ "network.target" ];
32
32
-
wantedBy = [ "multi-user.target" ];
33
33
-
34
34
-
path = with pkgs; [
35
35
-
dnsmasq
36
36
-
];
37
37
-
38
38
-
39
39
-
restartIfChanged = true;
40
40
-
41
41
-
serviceConfig = {
42
42
-
Restart = "always";
43
43
-
ExecStart = "${pkgs.dnsmasq}/bin/dnsmasq -k -C ${configFile}";
44
44
-
};
45
45
-
};
46
46
-
};
47
47
-
48
48
-
in out