diff --git a/flake.lock b/flake.lock index 188dc44..7b4f460 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,21 @@ { "nodes": { + "blobs": { + "flake": false, + "locked": { + "lastModified": 1604995301, + "narHash": "sha256-wcLzgLec6SGJA8fx1OEN1yV/Py5b+U5iyYpksUY/yLw=", + "owner": "simple-nixos-mailserver", + "repo": "blobs", + "rev": "2cccdf1ca48316f2cfd1c9a0017e8de5a7156265", + "type": "gitlab" + }, + "original": { + "owner": "simple-nixos-mailserver", + "repo": "blobs", + "type": "gitlab" + } + }, "dogetipbot-telegram": { "inputs": { "nixpkgs": [ @@ -59,11 +75,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1639891440, - "narHash": "sha256-FJxa6ObwOQKZy3VhwN5bJRzX+MV/Yq9WLHK/4jlPKrs=", + "lastModified": 1640077788, + "narHash": "sha256-YMSDk3hlucJTTARaHNOeQEF6zEW3A/x4sXgrz94VbS0=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "e6377ff35544226392b49fa2cf05590f9f0c4b43", + "rev": "9ab7d12287ced0e1b4c03b61c781901f178d9d77", "type": "github" }, "original": { @@ -72,13 +88,28 @@ "type": "indirect" } }, - "nixpkgs-unstable": { + "nixpkgs-21_05": { "locked": { - "lastModified": 1639876010, - "narHash": "sha256-naGsoUfsY92NaIGiFI8XFXBnesw8BQGe694xcfaLMDI=", + "lastModified": 1625692408, + "narHash": "sha256-e9L3TLLDVIJpMnHtiNHJE62oOh6emRtSZ244bgYJUZs=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "395879c28386e1abf20c7ecacd45880759548391", + "rev": "c06613c25df3fe1dd26243847a3c105cf6770627", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "ref": "nixos-21.05", + "type": "indirect" + } + }, + "nixpkgs-unstable": { + "locked": { + "lastModified": 1640139330, + "narHash": "sha256-Nkp3wUOGwtoQ7EH28RLVJ7EqB/e0TU7VcsM7GLy+SdY=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "81cef6b70fb5d5cdba5a0fef3f714c2dadaf0d6d", "type": "github" }, "original": { @@ -99,22 +130,27 @@ }, "simple-nixos-mailserver": { "inputs": { + "blobs": "blobs", "nixpkgs": [ + "nixpkgs-unstable" + ], + "nixpkgs-21_05": "nixpkgs-21_05", + "nixpkgs-21_11": [ "nixpkgs" ], "utils": "utils" }, "locked": { - "lastModified": 1622967674, - "narHash": "sha256-8RLe6Rqy2rKR/PGDMg/EVsWihsO+DQe/RYmlXdRZkLs=", + "lastModified": 1638911354, + "narHash": "sha256-hNhzLOp+dApEY15vwLAQZu+sjEQbJcOXCaSfAT6lpsQ=", "owner": "simple-nixos-mailserver", "repo": "nixos-mailserver", - "rev": "5675b122a947b40e551438df6a623efad19fd2e7", + "rev": "6e3a7b2ea6f0d68b82027b988aa25d3423787303", "type": "gitlab" }, "original": { "owner": "simple-nixos-mailserver", - "ref": "nixos-21.05", + "ref": "nixos-21.11", "repo": "nixos-mailserver", "type": "gitlab" } diff --git a/flake.nix b/flake.nix index fe76ddc..1a97e1f 100644 --- a/flake.nix +++ b/flake.nix @@ -4,8 +4,11 @@ nixpkgs-unstable.url = "flake:nixpkgs/nixos-unstable"; utils.url = "github:gytis-ivaskevicius/flake-utils-plus/v1.3.1"; simple-nixos-mailserver = { - url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-21.05"; - inputs.nixpkgs.follows = "nixpkgs"; + url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-21.11"; + inputs = { + nixpkgs.follows = "nixpkgs-unstable"; + nixpkgs-21_11.follows = "nixpkgs"; + }; }; dogetipbot-telegram = { url = "gitlab:nyanloutre/dogetipbot-telegram/master"; diff --git a/systems/LoutreOS/configuration.nix b/systems/LoutreOS/configuration.nix index 62e1c55..cf299f5 100644 --- a/systems/LoutreOS/configuration.nix +++ b/systems/LoutreOS/configuration.nix @@ -112,7 +112,10 @@ }; systemd.network.networks = { - "40-bouygues".dhcpV4Config.RouteMetric = 1; + "40-bouygues" = { + dhcpV4Config.RouteMetric = 1; + networkConfig.KeepConfiguration = "dhcp-on-stop"; + }; "40-enp0s21u2".dhcpV4Config.RouteMetric = 1024; }; diff --git a/systems/LoutreOS/services.nix b/systems/LoutreOS/services.nix index 811b9ce..0cffabc 100644 --- a/systems/LoutreOS/services.nix +++ b/systems/LoutreOS/services.nix @@ -87,7 +87,7 @@ in }; rspamd.workers.controller.extraConfig = '' - secure_ip = ["127.0.0.1", "10.30.135.71"]; + secure_ip = ["0.0.0.0/0"]; ''; redis.enable = true;