Files
clan-core/clanServices/hello-world/default.nix
2025-05-05 21:46:16 +02:00

32 lines
557 B
Nix

{ packages }:
{ ... }:
{
_class = "clan.service";
manifest.name = "clan-core/hello-word";
roles.peer = {
interface =
{ lib, ... }:
{
options.foo = lib.mkOption {
type = lib.types.str;
};
};
};
perMachine =
{ machine, ... }:
{
nixosModule = {
clan.core.vars.generators.hello = {
files.hello = {
secret = false;
};
script = ''
echo "Hello world from ${machine.name}" > $out/hello
'';
};
};
};
}