From c60fc5d9d1609d59fc1c2964cc13945c5a8ce4c5 Mon Sep 17 00:00:00 2001 From: James Andariese Date: Tue, 16 Jul 2024 23:40:44 -0500 Subject: [PATCH] add corenet module and basic coredns + Corefile --- flake.lock | 8 ++++---- modules/corenet.nix | 12 ++++++++++++ 2 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 modules/corenet.nix diff --git a/flake.lock b/flake.lock index 066af46..0840ca6 100644 --- a/flake.lock +++ b/flake.lock @@ -191,11 +191,11 @@ "nixpkgs": "nixpkgs_4" }, "locked": { - "lastModified": 1721177469, - "narHash": "sha256-8puiNyCJy6k1Pl25BgE4wUUpifO7f1hraR7JI9lAqW4=", + "lastModified": 1721191005, + "narHash": "sha256-iZn/aTs/b38+GD9sak1JgOnBTXKxxvZeqCAZocf0jr0=", "ref": "refs/heads/main", - "rev": "27af88462c971572a72a9a05c8608dca74e4a4b7", - "revCount": 13, + "rev": "7dfc2d363050b5108f8a671f9d31b8387e5a6c77", + "revCount": 15, "type": "git", "url": "https://git.strudelline.net/cascade/numbers" }, diff --git a/modules/corenet.nix b/modules/corenet.nix new file mode 100644 index 0000000..a2a8ebb --- /dev/null +++ b/modules/corenet.nix @@ -0,0 +1,12 @@ +{config, ...}: + +{ + services.coredns = { + enable = true; + config = '' + . { + whoami + } + ''; + }; +}