From 8853fcda9b75c70340cc79a9740e32ccb0da8f66 Mon Sep 17 00:00:00 2001 From: kurogeek Date: Thu, 25 Dec 2025 14:00:25 +0700 Subject: [PATCH] mob next [ci-skip] [ci skip] [skip ci] lastFile:modules/clan/phonebox/default.nix --- modules/clan/phonebox/default.nix | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/modules/clan/phonebox/default.nix b/modules/clan/phonebox/default.nix index 97d0f92..d7b87c2 100644 --- a/modules/clan/phonebox/default.nix +++ b/modules/clan/phonebox/default.nix @@ -1,11 +1,16 @@ -{ clanLib, ... }: +{ + clanLib, + config, + lib, + ... +}: { _class = "clan.service"; manifest.name = "phonebox"; manifest.description = ""; manifest.categories = [ "System" ]; - roles.default = { + roles.default = builtins.break { interface = { lib, ... }: { @@ -16,7 +21,7 @@ }; options.ownerName = lib.mkOption { type = lib.types.str; - description = "The owner's name for this unit"; + description = ""; default = ""; }; }; @@ -24,13 +29,9 @@ { roles, settings, - mkExports, ... }: { - exports = mkExports { - default.host.ownerName = "hello"; - }; nixosModule = { @@ -138,6 +139,7 @@ files = { server-prefix-number.secret = false; ata-local-number.secret = false; + owner-name.secret = false; }; prompts = { @@ -149,11 +151,16 @@ type = "line"; description = "Local suffix number: indicate local number on the server [XX00]"; }; + owner-name = { + type = "line"; + description = "The owner's name for this unit"; + }; }; script = '' cat $prompts/server-prefix-number > $out/server-prefix-number cat $prompts/ata-local-number > $out/ata-local-number + cat $prompts/owner-name > $out/owner-name ''; };