Added uptime kuma and signal
This commit is contained in:
parent
0ce313cd1f
commit
2f067334ab
6 changed files with 80 additions and 45 deletions
|
@ -16,16 +16,10 @@
|
||||||
../../moduler/users.nix
|
../../moduler/users.nix
|
||||||
../../moduler/kitchenowl.nix
|
../../moduler/kitchenowl.nix
|
||||||
../../moduler/radicale.nix
|
../../moduler/radicale.nix
|
||||||
#../../moduler/nginx.nix
|
|
||||||
#../../moduler/k3s.nix
|
|
||||||
../../moduler/vaultwarden.nix
|
../../moduler/vaultwarden.nix
|
||||||
../../moduler/wastring.nix
|
../../moduler/signal.nix
|
||||||
#../../moduler/lsp.nix
|
../../moduler/uptime-kuma.nix
|
||||||
];
|
# ../../moduler/wastring.nix
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
neovim
|
|
||||||
git
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
@ -44,8 +38,6 @@ users.users.root.openssh.authorizedKeys.keys = [
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII60tdNsG0z9q2jHmoTKvkeLQE6OF0bmTsDX1bpqpoG7 fw@jobb"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII60tdNsG0z9q2jHmoTKvkeLQE6OF0bmTsDX1bpqpoG7 fw@jobb"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
security.acme = {
|
security.acme = {
|
||||||
acceptTerms = true;
|
acceptTerms = true;
|
||||||
defaults.email = "fredrik@wastring.com";
|
defaults.email = "fredrik@wastring.com";
|
||||||
|
|
|
@ -36,10 +36,10 @@ in
|
||||||
programs.ssh.knownHosts = {
|
programs.ssh.knownHosts = {
|
||||||
desktop = {
|
desktop = {
|
||||||
extraHostNames = [ "192.168.1.227" ];
|
extraHostNames = [ "192.168.1.227" ];
|
||||||
publicKeyFile = ../../keys/desktop_rsa_pubkey;
|
publicKeyFile = ../../keys/rsa_pubkey;
|
||||||
};
|
};
|
||||||
"192.168.1.227" = {
|
"192.168.1.227" = {
|
||||||
publicKeyFile = ../../keys/desktop_rsa_pubkey;
|
publicKeyFile = ../../keys/rsa_pubkey;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -20,10 +20,6 @@ nixpkgs.config.permittedInsecurePackages = [
|
||||||
"broadcom-sta-6.30.223.271-57-6.12.45"
|
"broadcom-sta-6.30.223.271-57-6.12.45"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
lego
|
|
||||||
];
|
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
enable = true;
|
enable = true;
|
||||||
allowedTCPPorts = [
|
allowedTCPPorts = [
|
||||||
|
|
26
moduler/signal.nix
Normal file
26
moduler/signal.nix
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
in
|
||||||
|
{
|
||||||
|
virtualisation.oci-containers = {
|
||||||
|
backend = "podman";
|
||||||
|
containers = {
|
||||||
|
signal-cli = {
|
||||||
|
image = "bbernhard/signal-cli-rest-api";
|
||||||
|
volumes = [
|
||||||
|
"/var/signal:/home/.local/share/signal-cli"
|
||||||
|
];
|
||||||
|
ports = [ "127.0.0.1:8000:8080" ];
|
||||||
|
environment = {
|
||||||
|
MODE = "native";
|
||||||
|
}
|
||||||
|
;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
21
moduler/uptime-kuma.nix
Normal file
21
moduler/uptime-kuma.nix
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
in
|
||||||
|
{
|
||||||
|
networking.firewall.allowedTCPPorts = [ 4000 ];
|
||||||
|
|
||||||
|
services = {
|
||||||
|
uptime-kuma = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
PORT = "4000";
|
||||||
|
HOST = "192.168.1.227";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue