Compare commits
5 commits
aa766b7adc
...
478af69792
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
478af69792 | ||
|
|
b636b4ae97 | ||
|
|
37a7b07980 | ||
|
|
7b46f71779 | ||
|
|
c8b7439339 |
7 changed files with 37 additions and 13 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -11,3 +11,4 @@ dkim_private.pem
|
||||||
|
|
||||||
install.log
|
install.log
|
||||||
.direnv
|
.direnv
|
||||||
|
.agents
|
||||||
|
|
@ -10,6 +10,7 @@
|
||||||
./modules/matrix.nix
|
./modules/matrix.nix
|
||||||
./modules/monitoring.nix
|
./modules/monitoring.nix
|
||||||
./modules/ntfy.nix
|
./modules/ntfy.nix
|
||||||
|
./modules/uptime-kuma.nix
|
||||||
./secrets/secrets-scheme.nix
|
./secrets/secrets-scheme.nix
|
||||||
# Impure Secrets
|
# Impure Secrets
|
||||||
./secrets/secrets.nix
|
./secrets/secrets.nix
|
||||||
|
|
|
||||||
6
flake.lock
generated
6
flake.lock
generated
|
|
@ -22,11 +22,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1771848320,
|
"lastModified": 1772198003,
|
||||||
"narHash": "sha256-0MAd+0mun3K/Ns8JATeHT1sX28faLII5hVLq0L3BdZU=",
|
"narHash": "sha256-I45esRSssFtJ8p/gLHUZ1OUaaTaVLluNkABkk6arQwE=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "2fc6539b481e1d2569f25f8799236694180c0993",
|
"rev": "dd9b079222d43e1943b6ebd802f04fd959dc8e61",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
||||||
|
|
@ -24,8 +24,14 @@
|
||||||
|
|
||||||
devShells.x86_64-linux.default = let
|
devShells.x86_64-linux.default = let
|
||||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||||
|
deploy = pkgs.writeShellScriptBin "nhs" ''
|
||||||
|
nh os switch --hostname extremist-software --target-host root@extremist-software --impure path:. "$@"
|
||||||
|
'';
|
||||||
in pkgs.mkShell {
|
in pkgs.mkShell {
|
||||||
packages = [ pkgs.nh ];
|
packages = [
|
||||||
|
pkgs.nh
|
||||||
|
deploy
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -63,6 +63,12 @@
|
||||||
reverse_proxy localhost:3001 # Grafana
|
reverse_proxy localhost:3001 # Grafana
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"uptime.extremist.software" = {
|
||||||
|
extraConfig = ''
|
||||||
|
reverse_proxy localhost:4001
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
"ntfy.extremist.software" = {
|
"ntfy.extremist.software" = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
|
|
||||||
|
|
@ -14,17 +14,16 @@
|
||||||
search = {
|
search = {
|
||||||
request_timeout = 1.5;
|
request_timeout = 1.5;
|
||||||
};
|
};
|
||||||
use_default_settings = {
|
ui = {
|
||||||
engines = {
|
categories_as_tabs = [ "general" "images" ];
|
||||||
keep_only = [
|
|
||||||
"google"
|
|
||||||
"wikipedia"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
engines = [
|
engines = [
|
||||||
{ name = "google"; engine = "google"; disabled = false; }
|
{ name = "google"; engine = "google"; categories = "general"; disabled = false; }
|
||||||
{ name = "wikipedia"; engine = "wikipedia"; disabled = false; }
|
{ name = "wikipedia"; engine = "wikipedia"; categories = "general"; disabled = false; }
|
||||||
|
{ name = "google images"; engine = "google_images"; categories = "images"; disabled = false; }
|
||||||
|
{ name = "duckduckgo images"; engine = "duckduckgo_images"; categories = "images"; disabled = false; }
|
||||||
|
{ name = "bing images"; engine = "bing_images"; categories = "images"; disabled = false; }
|
||||||
|
{ name = "qwant images"; engine = "qwant_images"; categories = "images"; disabled = false; }
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
11
modules/uptime-kuma.nix
Normal file
11
modules/uptime-kuma.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.uptime-kuma = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
PORT = "4001";
|
||||||
|
HOST = "127.0.0.1";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue