Add deprecation warnings to all clanModules
This commit is contained in:
@@ -18,6 +18,13 @@
|
|||||||
../../root-password
|
../../root-password
|
||||||
];
|
];
|
||||||
config = {
|
config = {
|
||||||
|
|
||||||
|
warnings = [
|
||||||
|
"The clan.admin module is deprecated and will be removed on 2025-07-15.
|
||||||
|
Please migrate to user-maintained configuration or the new equivalent clan services
|
||||||
|
(https://docs.clan.lol/reference/clanServices)."
|
||||||
|
];
|
||||||
|
|
||||||
users.users.root.openssh.authorizedKeys.keys = builtins.attrValues config.clan.admin.allowedKeys;
|
users.users.root.openssh.authorizedKeys.keys = builtins.attrValues config.clan.admin.allowedKeys;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,8 +15,11 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
|
||||||
warnings = [
|
warnings = [
|
||||||
"The clan.auto-upgrade module is deprecated and will be removed on 2025-07-15. Please migrate to using the system.autoUpgrade NixOS option directly."
|
"The clan.auto-upgrade module is deprecated and will be removed on 2025-07-15.
|
||||||
|
Please migrate to user-maintained configuration or the new equivalent clan services
|
||||||
|
(https://docs.clan.lol/reference/clanServices)."
|
||||||
];
|
];
|
||||||
|
|
||||||
system.autoUpgrade = {
|
system.autoUpgrade = {
|
||||||
|
|||||||
@@ -90,6 +90,12 @@ in
|
|||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
|
||||||
|
warnings = [
|
||||||
|
"The clan.borgbackup module is deprecated and will be removed on 2025-07-15.
|
||||||
|
Please migrate to user-maintained configuration or the new equivalent clan services
|
||||||
|
(https://docs.clan.lol/reference/clanServices)."
|
||||||
|
];
|
||||||
|
|
||||||
# Destinations
|
# Destinations
|
||||||
clan.borgbackup.destinations =
|
clan.borgbackup.destinations =
|
||||||
let
|
let
|
||||||
|
|||||||
@@ -27,6 +27,13 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
|
||||||
|
warnings = [
|
||||||
|
"The clan.admin module is deprecated and will be removed on 2025-07-15.
|
||||||
|
Please migrate to user-maintained configuration or the new equivalent clan services
|
||||||
|
(https://docs.clan.lol/reference/clanServices)."
|
||||||
|
];
|
||||||
|
|
||||||
services.data-mesher.initNetwork =
|
services.data-mesher.initNetwork =
|
||||||
let
|
let
|
||||||
# for a given machine, read it's public key and remove any new lines
|
# for a given machine, read it's public key and remove any new lines
|
||||||
|
|||||||
@@ -5,7 +5,9 @@
|
|||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
warnings = [
|
warnings = [
|
||||||
"The clan.deltachat module is deprecated and will be removed on 2025-07-15. Please migrate to user-maintained configuration."
|
"The clan.deltachat module is deprecated and will be removed on 2025-07-15.
|
||||||
|
Please migrate to user-maintained configuration or the new equivalent clan services
|
||||||
|
(https://docs.clan.lol/reference/clanServices)."
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.firewall.interfaces."zt+".allowedTCPPorts = [ 25 ]; # smtp with other hosts
|
networking.firewall.interfaces."zt+".allowedTCPPorts = [ 25 ]; # smtp with other hosts
|
||||||
|
|||||||
@@ -7,6 +7,12 @@
|
|||||||
{
|
{
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
|
||||||
|
warnings = [
|
||||||
|
"The clan.disk-id module is deprecated and will be removed on 2025-07-15.
|
||||||
|
Please migrate to user-maintained configuration or the new equivalent clan services
|
||||||
|
(https://docs.clan.lol/reference/clanServices)."
|
||||||
|
];
|
||||||
clan.core.vars.generators.disk-id = {
|
clan.core.vars.generators.disk-id = {
|
||||||
files.diskId.secret = false;
|
files.diskId.secret = false;
|
||||||
runtimeInputs = [
|
runtimeInputs = [
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
_: {
|
_: {
|
||||||
|
|
||||||
warnings = [
|
warnings = [
|
||||||
"The clan.ergochat module is deprecated and will be removed on 2025-07-15. Please migrate to user-maintained configuration."
|
"The clan.ergochat module is deprecated and will be removed on 2025-07-15.
|
||||||
|
Please migrate to user-maintained configuration or the new equivalent clan services
|
||||||
|
(https://docs.clan.lol/reference/clanServices)."
|
||||||
];
|
];
|
||||||
|
|
||||||
services.ergochat = {
|
services.ergochat = {
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
|
||||||
|
warnings = [
|
||||||
|
"The clan.ergochat module is deprecated and will be removed on 2025-07-15.
|
||||||
|
Please migrate to user-maintained configuration or the new equivalent clan services
|
||||||
|
(https://docs.clan.lol/reference/clanServices)."
|
||||||
|
];
|
||||||
|
|
||||||
systemd.services.garage.serviceConfig = {
|
systemd.services.garage.serviceConfig = {
|
||||||
LoadCredential = [
|
LoadCredential = [
|
||||||
"rpc_secret_path:${config.clan.core.vars.generators.garage-shared.files.rpc_secret.path}"
|
"rpc_secret_path:${config.clan.core.vars.generators.garage-shared.files.rpc_secret.path}"
|
||||||
|
|||||||
@@ -12,7 +12,9 @@
|
|||||||
];
|
];
|
||||||
config = {
|
config = {
|
||||||
warnings = [
|
warnings = [
|
||||||
"The clan.heisenbridge module is deprecated and will be removed on 2025-07-15. Please migrate to user-maintained configuration."
|
"The clan.heisenbridge module is deprecated and will be removed on 2025-07-15.
|
||||||
|
Please migrate to user-maintained configuration or the new equivalent clan services
|
||||||
|
(https://docs.clan.lol/reference/clanServices)."
|
||||||
];
|
];
|
||||||
services.heisenbridge = {
|
services.heisenbridge = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -39,7 +39,9 @@ in
|
|||||||
];
|
];
|
||||||
config = {
|
config = {
|
||||||
warnings = [
|
warnings = [
|
||||||
"The clan.localsend module is deprecated and will be removed on 2025-07-15. Please migrate to user-maintained configuration."
|
"The clan.localsend module is deprecated and will be removed on 2025-07-15.
|
||||||
|
Please migrate to user-maintained configuration or the new equivalent clan services
|
||||||
|
(https://docs.clan.lol/reference/clanServices)."
|
||||||
];
|
];
|
||||||
|
|
||||||
clan.core.state.localsend.folders = [
|
clan.core.state.localsend.folders = [
|
||||||
|
|||||||
@@ -37,8 +37,11 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
|
||||||
warnings = [
|
warnings = [
|
||||||
"The clan.mumble module is deprecated and will be removed on 2025-07-15. Please migrate to user-maintained configuration."
|
"The clan.mumble module is deprecated and will be removed on 2025-07-15.
|
||||||
|
Please migrate to user-maintained configuration or the new equivalent clan services
|
||||||
|
(https://docs.clan.lol/reference/clanServices)."
|
||||||
];
|
];
|
||||||
|
|
||||||
services.murmur = {
|
services.murmur = {
|
||||||
|
|||||||
@@ -19,6 +19,12 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
config.warnings = [
|
||||||
|
"The clan.mycelium module is deprecated and will be removed on 2025-07-15.
|
||||||
|
Please migrate to user-maintained configuration or the new equivalent clan services
|
||||||
|
(https://docs.clan.lol/reference/clanServices)."
|
||||||
|
];
|
||||||
|
|
||||||
config.services.mycelium = {
|
config.services.mycelium = {
|
||||||
enable = true;
|
enable = true;
|
||||||
addHostedPublicNodes = lib.mkDefault config.clan.mycelium.addHostedPublicNodes;
|
addHostedPublicNodes = lib.mkDefault config.clan.mycelium.addHostedPublicNodes;
|
||||||
|
|||||||
@@ -12,6 +12,12 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
config = {
|
config = {
|
||||||
|
|
||||||
|
warnings = [
|
||||||
|
"The clan.packages module is deprecated and will be removed on 2025-07-15.
|
||||||
|
Please migrate to user-maintained configuration or the new equivalent clan services
|
||||||
|
(https://docs.clan.lol/reference/clanServices)."
|
||||||
|
];
|
||||||
environment.systemPackages = map (
|
environment.systemPackages = map (
|
||||||
pName: lib.getAttrFromPath (lib.splitString "." pName) pkgs
|
pName: lib.getAttrFromPath (lib.splitString "." pName) pkgs
|
||||||
) config.clan.packages.packages;
|
) config.clan.packages.packages;
|
||||||
|
|||||||
@@ -6,6 +6,13 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
|
|
||||||
|
warnings = [
|
||||||
|
"The clan.root-password module is deprecated and will be removed on 2025-07-15.
|
||||||
|
Please migrate to user-maintained configuration or the new equivalent clan services
|
||||||
|
(https://docs.clan.lol/reference/clanServices)."
|
||||||
|
];
|
||||||
|
|
||||||
users.mutableUsers = false;
|
users.mutableUsers = false;
|
||||||
users.users.root.hashedPasswordFile =
|
users.users.root.hashedPasswordFile =
|
||||||
config.clan.core.vars.generators.root-password.files.password-hash.path;
|
config.clan.core.vars.generators.root-password.files.password-hash.path;
|
||||||
|
|||||||
@@ -17,6 +17,13 @@ in
|
|||||||
clan.sshd.hostKeys.rsa.enable = lib.mkEnableOption "Generate RSA host key";
|
clan.sshd.hostKeys.rsa.enable = lib.mkEnableOption "Generate RSA host key";
|
||||||
};
|
};
|
||||||
config = {
|
config = {
|
||||||
|
|
||||||
|
warnings = [
|
||||||
|
"The clan.sshd module is deprecated and will be removed on 2025-07-15.
|
||||||
|
Please migrate to user-maintained configuration or the new equivalent clan services
|
||||||
|
(https://docs.clan.lol/reference/clanServices)."
|
||||||
|
];
|
||||||
|
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.PasswordAuthentication = false;
|
settings.PasswordAuthentication = false;
|
||||||
|
|||||||
@@ -3,6 +3,13 @@ let
|
|||||||
var = config.clan.core.vars.generators.state-version.files.version or { };
|
var = config.clan.core.vars.generators.state-version.files.version or { };
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
|
warnings = [
|
||||||
|
"The clan.state-version module is deprecated and will be removed on 2025-07-15.
|
||||||
|
Please migrate to user-maintained configuration or the new equivalent clan services
|
||||||
|
(https://docs.clan.lol/reference/clanServices)."
|
||||||
|
];
|
||||||
|
|
||||||
system.stateVersion = lib.mkDefault (lib.removeSuffix "\n" var.value);
|
system.stateVersion = lib.mkDefault (lib.removeSuffix "\n" var.value);
|
||||||
|
|
||||||
clan.core.vars.generators.state-version = {
|
clan.core.vars.generators.state-version = {
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ in
|
|||||||
imports = [
|
imports = [
|
||||||
../shared.nix
|
../shared.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
clan.syncthing.introducer = lib.strings.removeSuffix "\n" (
|
clan.syncthing.introducer = lib.strings.removeSuffix "\n" (
|
||||||
if builtins.pathExists introducerId then
|
if builtins.pathExists introducerId then
|
||||||
builtins.readFile introducerId
|
builtins.readFile introducerId
|
||||||
|
|||||||
@@ -26,6 +26,13 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
|
||||||
|
warnings = [
|
||||||
|
"The clan.user-password module is deprecated and will be removed on 2025-07-15.
|
||||||
|
Please migrate to user-maintained configuration or the new equivalent clan services
|
||||||
|
(https://docs.clan.lol/reference/clanServices)."
|
||||||
|
];
|
||||||
|
|
||||||
users.mutableUsers = false;
|
users.mutableUsers = false;
|
||||||
users.users.${cfg.user} = {
|
users.users.${cfg.user} = {
|
||||||
hashedPasswordFile = config.clan.core.vars.generators.user-password.files.user-password-hash.path;
|
hashedPasswordFile = config.clan.core.vars.generators.user-password.files.user-password-hash.path;
|
||||||
|
|||||||
@@ -17,6 +17,13 @@ in
|
|||||||
../shared.nix
|
../shared.nix
|
||||||
];
|
];
|
||||||
config = {
|
config = {
|
||||||
|
|
||||||
|
warnings = [
|
||||||
|
"The clan.zerotier module is deprecated and will be removed on 2025-07-15.
|
||||||
|
Please migrate to user-maintained configuration or the new equivalent clan services
|
||||||
|
(https://docs.clan.lol/reference/clanServices)."
|
||||||
|
];
|
||||||
|
|
||||||
systemd.services.zerotier-inventory-autoaccept =
|
systemd.services.zerotier-inventory-autoaccept =
|
||||||
let
|
let
|
||||||
machines = uniqueStrings (roles.moon.machines ++ roles.controller.machines ++ roles.peer.machines);
|
machines = uniqueStrings (roles.moon.machines ++ roles.controller.machines ++ roles.peer.machines);
|
||||||
|
|||||||
Reference in New Issue
Block a user