Compare commits
No commits in common. "02eb3b5599da1fea4c2ef59b535c28b417cb0a0e" and "bdc9e500bfb84781b04156c964aeee94c91921cf" have entirely different histories.
02eb3b5599
...
bdc9e500bf
4 changed files with 2 additions and 53 deletions
|
|
@ -2,10 +2,6 @@
|
|||
{
|
||||
services.fail2ban = {
|
||||
enable = true;
|
||||
|
||||
ignoreIP = [
|
||||
"zamok.crans.org"
|
||||
];
|
||||
};
|
||||
|
||||
services.openssh.settings.LogLevel = "VERBOSE";
|
||||
|
|
|
|||
|
|
@ -1,34 +0,0 @@
|
|||
{ config, ... }:
|
||||
let
|
||||
domain = "pass.${config.networking.domain}";
|
||||
in
|
||||
{
|
||||
|
||||
age.secrets = {
|
||||
vaultwarden_secret = {
|
||||
file = ../../secrets/services/vaultwarden.age;
|
||||
owner = "vaultwarden";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
services.vaultwarden = {
|
||||
enable = false; # TODO: enable
|
||||
# TODO: move to pgsql
|
||||
#dbBackend = "postgresql";
|
||||
environmentFile = config.age.secrets.vaultwarden_secret.path;
|
||||
config = {
|
||||
DOMAIN = "https://${domain}";
|
||||
SIGNUPS_ALLOWED = false;
|
||||
|
||||
ROCKET_ADDRESS = "::1";
|
||||
ROCKET_PORT = 8222;
|
||||
};
|
||||
};
|
||||
|
||||
services.caddy.virtualHosts."${domain}" = {
|
||||
extraConfig = ''
|
||||
reverse_proxy localhost:${builtins.toString config.services.vaultwarden.config.ROCKET_PORT}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
{ config, ... }:
|
||||
{ ... }:
|
||||
{
|
||||
services.prometheus.exporters = {
|
||||
node = {
|
||||
|
|
@ -9,19 +9,6 @@
|
|||
"--collector.softirqs"
|
||||
"--collector.tcpstat"
|
||||
];
|
||||
|
||||
openFirewall = true;
|
||||
};
|
||||
|
||||
postgres = {
|
||||
enable = config.services.postgresql.enable;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
services.caddy.globalConfig = "
|
||||
metrics {
|
||||
per_host
|
||||
}
|
||||
";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ pkgs.mkShell {
|
|||
packages = with pkgs; [
|
||||
nil
|
||||
nixpkgs-fmt
|
||||
agenix.packages.${stdenv.hostPlatform.system}.default
|
||||
agenix.packages.${system}.default
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue