Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-03-07 22:56:25 +00:00
parent 5566bc3677
commit 4676201fce
7 changed files with 21 additions and 14 deletions

View File

@@ -5,7 +5,7 @@
name = "backup";
runtimeInputs = with pkgs; [
btrfs-progs
coreutils-full
coreutils
util-linux
];
text = builtins.readFile ./backup.sh;

View File

@@ -1,4 +1,4 @@
{ lib, inputs, ... }:
{ inputs, ... }:
{
imports = [
inputs.disko.nixosModules.disko

View File

@@ -84,8 +84,12 @@ in
kill "$NTFY_PID"
wait "$NTFY_PID" || true
NTFY_PASSWORD=${hmConfig.sops.placeholder."ntfy/users/karaolidis"} ntfy user add karaolidis || true
NTFY_PASSWORD=${hmConfig.sops.placeholder."ntfy/users/karaolidis"} ntfy user change-pass karaolidis
NTFY_PASSWORD="${
hmConfig.sops.placeholder."ntfy/users/karaolidis"
}" ntfy user add karaolidis || true
NTFY_PASSWORD="${
hmConfig.sops.placeholder."ntfy/users/karaolidis"
}" ntfy user change-pass karaolidis
ntfy user change-role karaolidis admin
exec ntfy serve

View File

@@ -86,6 +86,7 @@ in
After = [
"traefik-http.socket"
"traefik-https.socket"
"sops-nix.service"
];
Requires = [

View File

@@ -1,13 +1,4 @@
{ pkgs, ... }:
{
keyValue = "${
pkgs.writeShellApplication {
name = "merge-key-value";
runtimeInputs = with pkgs; [
coreutils
gawk
];
text = builtins.readFile ./key-value.sh;
}
}/bin/merge-key-value";
keyValue = import ./keyValue { inherit pkgs; };
}

View File

@@ -0,0 +1,11 @@
{ pkgs, ... }:
"${
pkgs.writeShellApplication {
name = "merge-key-value";
runtimeInputs = with pkgs; [
coreutils
gawk
];
text = builtins.readFile ./key-value.sh;
}
}/bin/merge-key-value"