added git-secret and gotify-desktop feature

This commit is contained in:
2026-07-06 17:00:03 +01:00
parent 0ba9ee4bad
commit bdca2fdc0f
7 changed files with 50 additions and 0 deletions

3
.gitignore vendored
View File

@@ -3,3 +3,6 @@
/result
/HACKSTATION.qcow2
/result-man
.gitsecret/keys/random_seed
!*.secret
modules/features/gotify-desktop/gotify-key

BIN
.gitsecret/keys/pubring.kbx Normal file

Binary file not shown.

Binary file not shown.

BIN
.gitsecret/keys/trustdb.gpg Normal file

Binary file not shown.

View File

@@ -0,0 +1 @@
modules/features/gotify-desktop/gotify-key:f6129ad401b60d5a491d582169088600bb58a537d232b93c22923aede129d5cc

View File

@@ -0,0 +1,46 @@
{
self,
inputs,
...
}: {
flake.nixosModules.gotify-desktop = {
pkgs,
lib,
...
}: {
environment.systemPackages = [
self.packages.${pkgs.stdenv.hostPlatform.system}.gotify-desktop
];
};
perSystem = {
pkgs,
lib,
self',
...
}: {
packages = {
gotify-desktop = let
# Requires gpg keyring cert in order to get api key
config-file = pkgs.writeText "config.toml" ''
[gotify]
url = "wss://ntfy.voidarc.co.uk:443"
token = { command = "${pkgs.gnupg}/bin/gpg --quiet --batch --decrypt ${./gotify-key.secret}" }
[notification]
min_priority = 1
'';
in
inputs.wrappers.lib.wrapPackage ({
config,
wlib,
lib,
...
}: {
inherit pkgs;
package = inputs.gotify-desktop.packages.${pkgs.stdenv.hostPlatform.system}.default;
flags = {
"-c" = config-file;
};
});
};
};
}

Binary file not shown.