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"; name = "backup";
runtimeInputs = with pkgs; [ runtimeInputs = with pkgs; [
btrfs-progs btrfs-progs
coreutils-full coreutils
util-linux util-linux
]; ];
text = builtins.readFile ./backup.sh; text = builtins.readFile ./backup.sh;

View File

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

View File

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

View File

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

View File

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

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"