Cleanup and pin crowdsec pkg to 1.6.4 (URL bug)
Some checks are pending
/ Build Nix targets (push) Waiting to run

This commit is contained in:
Théo Barnouin 2025-05-28 11:48:38 +02:00
parent 188fe4c1dc
commit 313913758a
5 changed files with 64 additions and 935 deletions

View file

@ -1,9 +1,5 @@
{
config,
pkgs,
lib,
inputs,
modulesPath,
...
}: {
nix = {
@ -11,6 +7,21 @@
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;
@ -35,7 +46,7 @@
time.timeZone = "Europe/Paris";
console.keyMap = "fr";
i18n.defaultLocale = "fr_FR.UTF-8";
environment.sessionVariables = rec {
environment.sessionVariables = {
TERM = "xterm-256color";
};
@ -97,6 +108,7 @@
nmap
iperf3
netcat-openbsd
gnugrep
];
};

View file

@ -1,8 +1,5 @@
{
config, pkgs,
lib,
inputs,
modulesPath,
pkgs,
...
}: {
nix = {
@ -10,6 +7,21 @@
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;
@ -21,7 +33,7 @@
time.timeZone = "Europe/Paris";
console.keyMap = "fr";
i18n.defaultLocale = "fr_FR.UTF-8";
environment.sessionVariables = rec {
environment.sessionVariables = {
TERM = "xterm-256color";
};
@ -83,6 +95,7 @@
nmap
iperf3
netcat-openbsd
gnugrep
];
};