1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 11:36:05 +01:00

algia: add module

This commit is contained in:
Aguirre Matteo 2025-09-29 14:01:24 -03:00 committed by Austin Horstman
parent 9e0453a9b0
commit a65df80783
4 changed files with 96 additions and 0 deletions

View file

@ -0,0 +1,10 @@
{
"privatekey": "nsecXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"relays": {
"wss =//relay-jp.nostr.wirednet.jp": {
"read": true,
"search": false,
"write": true
}
}
}

View file

@ -0,0 +1 @@
{ algia-settings = ./settings.nix; }

View file

@ -0,0 +1,28 @@
{
lib,
pkgs,
config,
...
}:
{
programs.algia = {
enable = true;
settings = {
relays = {
"wss =//relay-jp.nostr.wirednet.jp" = {
read = true;
write = true;
search = false;
};
};
privatekey = "nsecXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
};
};
nmt.script = ''
assertFileExists home-files/.config/algia/config.json
assertFileContent home-files/.config/algia/config.json \
${./config.json}
'';
}