Ntfy config for Thor and Odin

This commit is contained in:
Filippo Berto 2024-03-07 10:04:53 +01:00
parent 548ffa8a2d
commit 6791ed0494
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056
6 changed files with 26 additions and 9 deletions

View file

@ -1,7 +1,9 @@
{ pkgs, ... }: {
{ nixosConfig, pkgs, config, ... }:
let
inherit (nixosConfig.networking) hostName;
in
{
home.packages = [ pkgs.ntfy-sh ];
xdg.configFile."ntfy/client.yml".text = ''
default-host: https://ntfy.bertof.net
'';
xdg.configFile."ntfy/client.yml".source = config.lib.file.mkOutOfStoreSymlink nixosConfig.age.secrets."ntfy-${hostName}".path;
}