32 lines
557 B
Nix
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
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
}
|