mob next [ci-skip] [ci skip] [skip ci]
lastFile:modules/clan/phonebox/default.nix
This commit is contained in:
@@ -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
|
||||
'';
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user