From 7422adb13af017d1fdba643ff04251da731f541c Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 16 Jul 2024 14:01:32 +0200 Subject: [PATCH] modules/reflection: init --- modules/part.nix | 2 ++ modules/reflection/default.nix | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 modules/reflection/default.nix diff --git a/modules/part.nix b/modules/part.nix index 0cd083b..3a6afcb 100644 --- a/modules/part.nix +++ b/modules/part.nix @@ -26,6 +26,7 @@ in nix-register-flakes = ./nix-register-flakes; patroni = ./patroni; port-magic = ./port-magic; + reflection = ./reflection; shell-config = ./shell-config; ssh = ./ssh; system-info = ./system-info; @@ -39,6 +40,7 @@ in minimal nixpkgs-config port-magic + reflection ssh systemd-extras ]; diff --git a/modules/reflection/default.nix b/modules/reflection/default.nix new file mode 100644 index 0000000..eb3b5d3 --- /dev/null +++ b/modules/reflection/default.nix @@ -0,0 +1,10 @@ +{ config, depot, lib, ... }: + +{ + options.reflection = lib.mkOption { + description = "Peer into the Watchman's Glass."; + type = lib.types.raw; + readOnly = true; + default = depot.hours.${config.networking.hostName}; + }; +}