Compare commits
No commits in common. "313913758a6a65497e3b208ca4737d9b15cc2209" and "88b468895630400ae1d6235442b4a6d1436739e0" have entirely different histories.
313913758a
...
88b4688956
7 changed files with 19 additions and 94 deletions
|
@ -602,14 +602,14 @@ in
|
|||
console_path = mkDefault consoleFile;
|
||||
profiles_path = mkDefault localProfilesFile;
|
||||
|
||||
online_client = mkDefault {
|
||||
sharing = mkDefault true;
|
||||
pull = mkDefault {
|
||||
community = mkDefault true;
|
||||
blocklists = mkDefault true;
|
||||
};
|
||||
credentials_path = cfg.settings.capi.credentialsFile;
|
||||
};
|
||||
#online_client = mkDefault {
|
||||
# sharing = mkDefault true;
|
||||
# pull = mkDefault {
|
||||
# community = mkDefault true;
|
||||
# blocklists = mkDefault true;
|
||||
# };
|
||||
# credentials_path = cfg.settings.capi.credentialsFile;
|
||||
#};
|
||||
};
|
||||
};
|
||||
prometheus = {
|
||||
|
|
|
@ -35,7 +35,6 @@ in {
|
|||
"secrets/postgresql-lapi-key.age".publicKeys = [tbarnouin postgresql];
|
||||
|
||||
"services/nginx/secrets/cs-lapi-key.age".publicKeys = [tbarnouin nginx];
|
||||
"services/nginx/secrets/cs-capi-key.age".publicKeys = [tbarnouin nginx];
|
||||
"services/minimalConfig/secrets/cs-lapi-key.age".publicKeys = users ++ systems;
|
||||
"secrets/cs-lapi-key.age".publicKeys = users ++ systems;
|
||||
|
||||
|
|
|
@ -26,11 +26,6 @@ in {
|
|||
file = ./secrets/cs-lapi-key.age;
|
||||
owner = "crowdsec";
|
||||
};
|
||||
age.secrets.nginx-capi-key = {
|
||||
file = ./secrets/cs-capi-key.age;
|
||||
owner = "crowdsec";
|
||||
mode = "600";
|
||||
};
|
||||
services = {
|
||||
crowdsec-firewall-bouncer = {
|
||||
enable = true;
|
||||
|
@ -47,7 +42,6 @@ in {
|
|||
listen_uri = "${cfg.proxy_ip}:8080";
|
||||
};
|
||||
lapi.credentialsFile = "${config.age.secrets.nginx-lapi-key.path}";
|
||||
capi.credentialsFile = "${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JU9j4ZM/Y+Shsw/U2TBXOk18f9g+CidhCw==
|
||||
-----END AGE ENCRYPTED FILE-----
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
|
@ -38,34 +39,6 @@ in {
|
|||
type = "syslog";
|
||||
};
|
||||
}
|
||||
{
|
||||
source = "journalctl";
|
||||
journalctl_filter = [ "_SYSTEMD_UNIT=sonarr.service" ];
|
||||
labels = {
|
||||
type = "syslog";
|
||||
};
|
||||
}
|
||||
{
|
||||
source = "journalctl";
|
||||
journalctl_filter = [ "_SYSTEMD_UNIT=bazarr.service" ];
|
||||
labels = {
|
||||
type = "syslog";
|
||||
};
|
||||
}
|
||||
{
|
||||
source = "journalctl";
|
||||
journalctl_filter = [ "_SYSTEMD_UNIT=prowlarr.service" ];
|
||||
labels = {
|
||||
type = "syslog";
|
||||
};
|
||||
}
|
||||
{
|
||||
source = "journalctl";
|
||||
journalctl_filter = [ "_SYSTEMD_UNIT=jellyseerr.service" ];
|
||||
labels = {
|
||||
type = "syslog";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
inputs,
|
||||
modulesPath,
|
||||
...
|
||||
}: {
|
||||
nix = {
|
||||
|
@ -7,21 +11,6 @@
|
|||
settings.trusted-users = ["root" "@wheel"];
|
||||
};
|
||||
|
||||
nixpkgs.overlays = [
|
||||
(final: prev: {
|
||||
crowdsec = prev.crowdsec.overrideAttrs ( prev: rec {
|
||||
pname = "crowdsec";
|
||||
version = "1.6.4";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "crowdsecurity";
|
||||
repo = "${pname}";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-/NTlj0kYCOMxShfoKdmouJTiookDjccUj5HFHLPn5HI=";
|
||||
};
|
||||
});
|
||||
})
|
||||
];
|
||||
|
||||
networking = {
|
||||
firewall = {
|
||||
enable = true;
|
||||
|
@ -46,7 +35,7 @@
|
|||
time.timeZone = "Europe/Paris";
|
||||
console.keyMap = "fr";
|
||||
i18n.defaultLocale = "fr_FR.UTF-8";
|
||||
environment.sessionVariables = {
|
||||
environment.sessionVariables = rec {
|
||||
TERM = "xterm-256color";
|
||||
};
|
||||
|
||||
|
@ -108,7 +97,6 @@
|
|||
nmap
|
||||
iperf3
|
||||
netcat-openbsd
|
||||
gnugrep
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
{
|
||||
pkgs,
|
||||
config, pkgs,
|
||||
lib,
|
||||
inputs,
|
||||
modulesPath,
|
||||
...
|
||||
}: {
|
||||
nix = {
|
||||
|
@ -7,21 +10,6 @@
|
|||
settings.trusted-users = ["root" "@wheel"];
|
||||
};
|
||||
|
||||
nixpkgs.overlays = [
|
||||
(final: prev: {
|
||||
crowdsec = prev.crowdsec.overrideAttrs ( prev: rec {
|
||||
pname = "crowdsec";
|
||||
version = "1.6.4";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "crowdsecurity";
|
||||
repo = "${pname}";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-/NTlj0kYCOMxShfoKdmouJTiookDjccUj5HFHLPn5HI=";
|
||||
};
|
||||
});
|
||||
})
|
||||
];
|
||||
|
||||
networking = {
|
||||
firewall = {
|
||||
enable = true;
|
||||
|
@ -33,7 +21,7 @@
|
|||
time.timeZone = "Europe/Paris";
|
||||
console.keyMap = "fr";
|
||||
i18n.defaultLocale = "fr_FR.UTF-8";
|
||||
environment.sessionVariables = {
|
||||
environment.sessionVariables = rec {
|
||||
TERM = "xterm-256color";
|
||||
};
|
||||
|
||||
|
@ -95,7 +83,6 @@
|
|||
nmap
|
||||
iperf3
|
||||
netcat-openbsd
|
||||
gnugrep
|
||||
];
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue