@@ -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;
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
{ lib, inputs, ... }:
|
{ inputs, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
inputs.disko.nixosModules.disko
|
inputs.disko.nixosModules.disko
|
||||||
|
@@ -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
|
||||||
|
@@ -86,6 +86,7 @@ in
|
|||||||
After = [
|
After = [
|
||||||
"traefik-http.socket"
|
"traefik-http.socket"
|
||||||
"traefik-https.socket"
|
"traefik-https.socket"
|
||||||
|
"sops-nix.service"
|
||||||
];
|
];
|
||||||
|
|
||||||
Requires = [
|
Requires = [
|
||||||
|
@@ -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";
|
|
||||||
}
|
}
|
||||||
|
11
lib/runtime/merge/keyValue/default.nix
Normal file
11
lib/runtime/merge/keyValue/default.nix
Normal 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"
|
Reference in New Issue
Block a user