mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
hosts/ni/services/dns-server: init
Some checks failed
Build devcontainers / build-devcontainers (push) Has been cancelled
Cache outputs / build-custom-packages (push) Has been cancelled
Check flake outputs / check-outputs (push) Has been cancelled
Publish every Git push to master to FlakeHub / flakehub-publish (push) Has been cancelled
Build personalized bootstrap ISO / build-iso (x86_64-linux) (push) Has been cancelled
Build project site / build (push) Has been cancelled
Build project site / deploy (push) Has been cancelled
Update flake inputs / update (push) Has been cancelled
Some checks failed
Build devcontainers / build-devcontainers (push) Has been cancelled
Cache outputs / build-custom-packages (push) Has been cancelled
Check flake outputs / check-outputs (push) Has been cancelled
Publish every Git push to master to FlakeHub / flakehub-publish (push) Has been cancelled
Build personalized bootstrap ISO / build-iso (x86_64-linux) (push) Has been cancelled
Build project site / build (push) Has been cancelled
Build project site / deploy (push) Has been cancelled
Update flake inputs / update (push) Has been cancelled
This commit is contained in:
parent
75e579bb01
commit
7a06117ad4
@ -23,6 +23,7 @@
|
|||||||
services.reverse-proxy.enable = true;
|
services.reverse-proxy.enable = true;
|
||||||
services.download-media.enable = true;
|
services.download-media.enable = true;
|
||||||
services.rss-reader.enable = true;
|
services.rss-reader.enable = true;
|
||||||
|
services.dns-server.enable = true;
|
||||||
setups = {
|
setups = {
|
||||||
desktop.enable = true;
|
desktop.enable = true;
|
||||||
development.enable = true;
|
development.enable = true;
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
./services/monitoring.nix
|
./services/monitoring.nix
|
||||||
./services/download-media
|
./services/download-media
|
||||||
./services/rss-reader
|
./services/rss-reader
|
||||||
|
./services/dns-server
|
||||||
./services/penpot
|
./services/penpot
|
||||||
./setups/desktop.nix
|
./setups/desktop.nix
|
||||||
./setups/development.nix
|
./setups/development.nix
|
||||||
|
42
configs/nixos/ni/modules/services/dns-server/default.nix
Normal file
42
configs/nixos/ni/modules/services/dns-server/default.nix
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
hostCfg = config.hosts.ni;
|
||||||
|
cfg = hostCfg.services.dns-server;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.hosts.ni.services.dns-server.enable =
|
||||||
|
lib.mkEnableOption "preferred DNS server";
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
services.nsd = {
|
||||||
|
enable = true;
|
||||||
|
ipv4 = true;
|
||||||
|
ipv6 = true;
|
||||||
|
|
||||||
|
zones."foodogsquared.internal".data = ''
|
||||||
|
$ORIGIN foodogsquared.internal.
|
||||||
|
$TTL 3600
|
||||||
|
|
||||||
|
@ IN SOA ns1.foodogsquared.internal. admin@foodogsquared.one. (
|
||||||
|
2025010101 ;Serial
|
||||||
|
3600 ;Refresh
|
||||||
|
3600 ;Retry
|
||||||
|
3600 ;Expire
|
||||||
|
3600 ;Negative response caching TTL
|
||||||
|
)
|
||||||
|
3600 IN NS ns1.foodogsquared.internal.
|
||||||
|
|
||||||
|
ni 3600 IN A 127.0.0.1.
|
||||||
|
ns1 3600 IN A 127.0.0.1.
|
||||||
|
rss 3600 IN A 127.0.0.1.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
security.ipa = {
|
||||||
|
enable = true;
|
||||||
|
domain = "foodogsquared.internal";
|
||||||
|
dyndns.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user