chore(treewide): Upgrade to NixOS 25.05
This commit is contained in:
parent
b067bbc8c0
commit
fc6be0c4c2
6 changed files with 43 additions and 29 deletions
|
@ -1,6 +1,5 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
flake-inputs,
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
|
@ -21,7 +20,7 @@ in
|
||||||
services = {
|
services = {
|
||||||
matrix-conduit = {
|
matrix-conduit = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = flake-inputs.continuwuity.packages.${pkgs.system}.default;
|
package = pkgs.matrix-continuwuity;
|
||||||
settings.global = {
|
settings.global = {
|
||||||
address = "127.0.0.1";
|
address = "127.0.0.1";
|
||||||
server_name = domain;
|
server_name = domain;
|
||||||
|
|
|
@ -29,16 +29,29 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
# Encryption support
|
# Encryption support
|
||||||
extraSettings = {
|
# TODO(tlater): Enable when
|
||||||
"de.sorunome.msc2409.push_ephemeral" = true;
|
# https://github.com/matrix-org/matrix-hookshot/issues/1060 is
|
||||||
push_ephemeral = true;
|
# fixed
|
||||||
"org.matrix.msc3202" = true;
|
# extraSettings = {
|
||||||
};
|
# "de.sorunome.msc2409.push_ephemeral" = true;
|
||||||
|
# push_ephemeral = true;
|
||||||
|
# "org.matrix.msc3202" = true;
|
||||||
|
# };
|
||||||
|
|
||||||
runtimeRegistration = "${cfg.registrationFile}";
|
runtimeRegistration = "${cfg.registrationFile}";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
# users = {
|
||||||
|
# users.matrix-hookshot = {
|
||||||
|
# home = "/run/matrix-hookshot";
|
||||||
|
# group = "matrix-hookshot";
|
||||||
|
# isSystemUser = true;
|
||||||
|
# };
|
||||||
|
|
||||||
|
# groups.matrix-hookshot = { };
|
||||||
|
# };
|
||||||
|
|
||||||
systemd.services.matrix-hookshot = {
|
systemd.services.matrix-hookshot = {
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = lib.mkForce "exec";
|
Type = lib.mkForce "exec";
|
||||||
|
@ -49,6 +62,7 @@ in
|
||||||
# Some library in matrix-hookshot wants a home directory
|
# Some library in matrix-hookshot wants a home directory
|
||||||
Environment = [ "HOME=/run/matrix-hookshot" ];
|
Environment = [ "HOME=/run/matrix-hookshot" ];
|
||||||
|
|
||||||
|
# User = "matrix-hookshot";
|
||||||
DynamicUser = true;
|
DynamicUser = true;
|
||||||
StateDirectory = "matrix-hookshot";
|
StateDirectory = "matrix-hookshot";
|
||||||
RuntimeDirectory = "matrix-hookshot";
|
RuntimeDirectory = "matrix-hookshot";
|
||||||
|
@ -62,7 +76,11 @@ in
|
||||||
ProtectKernelModules = true;
|
ProtectKernelModules = true;
|
||||||
ProtectKernelLogs = true;
|
ProtectKernelLogs = true;
|
||||||
ProtectControlGroups = true;
|
ProtectControlGroups = true;
|
||||||
RestrictAddressFamilies = [ "AF_INET AF_INET6" ];
|
RestrictAddressFamilies = [
|
||||||
|
# "AF_UNIX"
|
||||||
|
"AF_INET"
|
||||||
|
"AF_INET6"
|
||||||
|
];
|
||||||
LockPersonality = true;
|
LockPersonality = true;
|
||||||
RestrictRealtime = true;
|
RestrictRealtime = true;
|
||||||
ProtectProc = "invisible";
|
ProtectProc = "invisible";
|
||||||
|
@ -71,6 +89,11 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# services.redis.servers.matrix-hookshot = {
|
||||||
|
# enable = true;
|
||||||
|
# user = "matrix-hookshot";
|
||||||
|
# };
|
||||||
|
|
||||||
services.matrix-hookshot = {
|
services.matrix-hookshot = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
@ -89,6 +112,8 @@ in
|
||||||
|
|
||||||
bot.displayname = "Hookshot";
|
bot.displayname = "Hookshot";
|
||||||
|
|
||||||
|
# cache.redisUri = "redis://${config.services.redis.servers.matrix-hookshot.unixSocket}";
|
||||||
|
|
||||||
generic = {
|
generic = {
|
||||||
enabled = true;
|
enabled = true;
|
||||||
outbound = false;
|
outbound = false;
|
||||||
|
@ -98,7 +123,10 @@ in
|
||||||
allowJsTransformationFunctions = true;
|
allowJsTransformationFunctions = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
encryption.storagePath = "/var/lib/matrix-hookshot/cryptostore";
|
# TODO(tlater): Enable when
|
||||||
|
# https://github.com/matrix-org/matrix-hookshot/issues/1060 is
|
||||||
|
# fixed
|
||||||
|
# encryption.storagePath = "/var/lib/matrix-hookshot/cryptostore";
|
||||||
|
|
||||||
permissions = [
|
permissions = [
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,9 +1,4 @@
|
||||||
{
|
{ pkgs, config, ... }:
|
||||||
pkgs,
|
|
||||||
config,
|
|
||||||
flake-inputs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
let
|
||||||
domain = "metrics.${config.services.nginx.domain}";
|
domain = "metrics.${config.services.nginx.domain}";
|
||||||
in
|
in
|
||||||
|
@ -35,7 +30,7 @@ in
|
||||||
|
|
||||||
declarativePlugins = [
|
declarativePlugins = [
|
||||||
pkgs.grafanaPlugins.victoriametrics-metrics-datasource
|
pkgs.grafanaPlugins.victoriametrics-metrics-datasource
|
||||||
flake-inputs.nixpkgs-unstable.legacyPackages.${pkgs.system}.grafanaPlugins.victoriametrics-logs-datasource
|
pkgs.grafanaPlugins.victoriametrics-logs-datasource
|
||||||
];
|
];
|
||||||
|
|
||||||
provision = {
|
provision = {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
nextcloud = pkgs.nextcloud30;
|
nextcloud = pkgs.nextcloud31;
|
||||||
hostName = "nextcloud.${config.services.nginx.domain}";
|
hostName = "nextcloud.${config.services.nginx.domain}";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
@ -19,10 +19,10 @@ in
|
||||||
packageOverrides = _: prev: {
|
packageOverrides = _: prev: {
|
||||||
extensions = prev.extensions // {
|
extensions = prev.extensions // {
|
||||||
pgsql = prev.extensions.pgsql.overrideAttrs (_: {
|
pgsql = prev.extensions.pgsql.overrideAttrs (_: {
|
||||||
configureFlags = [ "--with-pgsql=${lib.getDev config.services.postgresql.package}" ];
|
configureFlags = [ "--with-pgsql=${lib.getDev config.services.postgresql.package.pg_config}" ];
|
||||||
});
|
});
|
||||||
pdo_pgsql = prev.extensions.pdo_pgsql.overrideAttrs (_: {
|
pdo_pgsql = prev.extensions.pdo_pgsql.overrideAttrs (_: {
|
||||||
configureFlags = [ "--with-pdo-pgsql=${lib.getDev config.services.postgresql.package}" ];
|
configureFlags = [ "--with-pdo-pgsql=${lib.getDev config.services.postgresql.package.pg_config}" ];
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,12 +2,7 @@
|
||||||
description = "tlater.net host configuration";
|
description = "tlater.net host configuration";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11-small";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05-small";
|
||||||
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable-small";
|
|
||||||
continuwuity = {
|
|
||||||
url = "git+https://forgejo.ellis.link/continuwuation/continuwuity.git?ref=refs/tags/v0.5.0-rc.5";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
disko = {
|
disko = {
|
||||||
url = "github:nix-community/disko";
|
url = "github:nix-community/disko";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
|
@ -247,10 +247,7 @@ in
|
||||||
online_client = {
|
online_client = {
|
||||||
# By default, we don't let crowdsec phone home, since
|
# By default, we don't let crowdsec phone home, since
|
||||||
# this is usually within NixOS users' concerns.
|
# this is usually within NixOS users' concerns.
|
||||||
#
|
sharing = lib.mkDefault false;
|
||||||
# TODO: Enable when this option becomes available
|
|
||||||
# (1.6.4, current nixpkgs-unstable)
|
|
||||||
# sharing = lib.mkDefault false;
|
|
||||||
credentials_path = cfg.centralApiCredentials;
|
credentials_path = cfg.centralApiCredentials;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue