Merge branch 'main' into wiki

wiki
Pyjacpp 2026-06-13 16:08:39 +02:00
commit 5106ef40a9
No known key found for this signature in database
GPG Key ID: ED479A5A26930939
9 changed files with 50 additions and 19 deletions

View File

@ -50,11 +50,11 @@
"nixpkgs-lib": "nixpkgs-lib" "nixpkgs-lib": "nixpkgs-lib"
}, },
"locked": { "locked": {
"lastModified": 1775087534, "lastModified": 1778716662,
"narHash": "sha256-91qqW8lhL7TLwgQWijoGBbiD4t7/q75KTi8NxjVmSmA=", "narHash": "sha256-m1Yf0wZ8j1OHjTc2UwHwyQRSnNeSgLJOd7q5Y45hzi4=",
"owner": "hercules-ci", "owner": "hercules-ci",
"repo": "flake-parts", "repo": "flake-parts",
"rev": "3107b77cd68437b9a76194f0f7f9c55f2329ca5b", "rev": "f7c1a2d347e4c52d5fb8d10cb4d94b5884e546fb",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -86,27 +86,27 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1776434932, "lastModified": 1780902259,
"narHash": "sha256-gyqXNMgk3sh+ogY5svd2eNLJ6oEwzbAeaoBrrxD0lKk=", "narHash": "sha256-q8yYEC5f1mFlQO9RGna4LTc9QrcvWunX6FYp83munkQ=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "c7f47036d3df2add644c46d712d14262b7d86c0c", "rev": "bd0ff2d3eac24699c3664d5966b9ef36f388e2ca",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NixOS", "owner": "NixOS",
"ref": "nixos-25.11", "ref": "nixos-26.05",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
}, },
"nixpkgs-lib": { "nixpkgs-lib": {
"locked": { "locked": {
"lastModified": 1774748309, "lastModified": 1777168982,
"narHash": "sha256-+U7gF3qxzwD5TZuANzZPeJTZRHS29OFQgkQ2kiTJBIQ=", "narHash": "sha256-GOkGPcboWE9BmGCRMLX3worL4EMnsnG8MyKmXNeYuhQ=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixpkgs.lib", "repo": "nixpkgs.lib",
"rev": "333c4e0545a6da976206c74db8773a1645b5870a", "rev": "f5901329dade4a6ea039af1433fb087bd9c1fe14",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -145,11 +145,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1775636079, "lastModified": 1780220602,
"narHash": "sha256-pc20NRoMdiar8oPQceQT47UUZMBTiMdUuWrYu2obUP0=", "narHash": "sha256-eynAfOmbmxJnkp7YewvCEbShNnnYJ9gLLqkzsYtBPeM=",
"owner": "numtide", "owner": "numtide",
"repo": "treefmt-nix", "repo": "treefmt-nix",
"rev": "790751ff7fd3801feeaf96d7dc416a8d581265ba", "rev": "db947814a175b7ca6ded66e21383d938df01c227",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -2,7 +2,7 @@
description = "Configuration NixOS du Crans"; description = "Configuration NixOS du Crans";
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
flake-parts.url = "github:hercules-ci/flake-parts"; flake-parts.url = "github:hercules-ci/flake-parts";
# Formatter # Formatter

View File

@ -20,6 +20,7 @@
kernelParams = [ "console=ttyS0,115200" ]; kernelParams = [ "console=ttyS0,115200" ];
kernelPackages = pkgs.linuxPackages_latest; kernelPackages = pkgs.linuxPackages_latest;
supportedFilesystems = lib.mkForce [ "btrfs" "vfat" "zfs"]; supportedFilesystems = lib.mkForce [ "btrfs" "vfat" "zfs"];
zfs.forceImportRoot = lib.mkDefault false;
}; };
services.openssh = { services.openssh = {

View File

@ -1,4 +1,4 @@
{ pkgs, ... }: { lib, pkgs, ... }:
{ {
imports = [ imports = [
@ -27,7 +27,9 @@
"head" "head"
"backups" "backups"
]; ];
forceImportAll = true; forceImportAll = lib.mkForce true;
# Ajouté suite au passage en 26.05 par souci de cohérence
forceImportRoot = lib.mkForce true;
}; };
}; };

View File

@ -1,7 +1,7 @@
{ pkgs, ... }: { pkgs, ... }:
let let
synapse-admin_over = pkgs.synapse-admin-etkecc.overrideAttrs (_: { synapse-admin_over = pkgs.ketesa.overrideAttrs (_: {
yarnBuildFlags = "--base=/admin"; yarnBuildFlags = "--base=/admin";
}); });
synapse-admin = synapse-admin_over.withConfig { synapse-admin = synapse-admin_over.withConfig {

View File

@ -61,6 +61,19 @@ let
]; ];
}; };
anubisAllowOther = formatJSON.generate "anubis_allow.json" {
"bots" = [
{
import = "${antiBot}";
}
{
name = "allow-other";
path_regex = "^*";
action = "ALLOW";
}
];
};
anubisPerso = formatJSON.generate "anubis_perso.json" { anubisPerso = formatJSON.generate "anubis_perso.json" {
"bots" = [ "bots" = [
{ {
@ -171,7 +184,7 @@ in
]; ];
}; };
"wiki" = { "wiki" = {
## anubisConfig = "${anubisChallenge}"; anubisConfig = "${anubisChallenge}";
target = "172.16.10.161"; target = "172.16.10.161";
serverAliases = [ serverAliases = [
"wikipedia" "wikipedia"

View File

@ -18,6 +18,7 @@ in
./nullmailer.nix ./nullmailer.nix
./packages.nix ./packages.nix
./ssh.nix ./ssh.nix
./store.nix
./users.nix ./users.nix
./virtualisation.nix ./virtualisation.nix
]; ];

View File

@ -0,0 +1,10 @@
{...}:
{
nix.gc = {
automatic = true;
dates = "04:15";
# avoid to run nix gc on all machine at the same time
randomizedDelaySec = "1h";
options = "--delete-older-than 14d";
};
}

View File

@ -1,4 +1,4 @@
{ ... }: { lib, ... }:
{ {
imports = [ imports = [
@ -24,4 +24,8 @@
useTmpfs = true; useTmpfs = true;
cleanOnBoot = true; cleanOnBoot = true;
}; };
# Recommandé depuis le passage à 26.05
boot.zfs.forceImportAll = lib.mkDefault false;
boot.zfs.forceImportRoot = lib.mkDefault false;
} }