Skip to content

Commit

Permalink
Merge staging-next into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Jan 11, 2025
2 parents c5923ba + 98dddba commit 591eeee
Show file tree
Hide file tree
Showing 122 changed files with 1,902 additions and 1,035 deletions.
12 changes: 12 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11758,6 +11758,12 @@
githubId = 1730718;
name = "Hideaki Kawai";
};
kaylorben = {
email = "[email protected]";
github = "kaylorben";
githubId = 41012641;
name = "Benjamin Kaylor";
};
kazcw = {
email = "[email protected]";
github = "kazcw";
Expand Down Expand Up @@ -21062,6 +21068,12 @@
githubId = 174749595;
keys = [ { fingerprint = "E3CD E225 47C6 2DB6 6CCD BC06 CC3A E2EA 0000 0000"; } ];
};
sigmike = {
email = "[email protected]";
github = "sigmike";
githubId = 28259;
name = "Michael Witrant";
};
sikmir = {
email = "[email protected]";
matrix = "@sikmir:matrix.org";
Expand Down
56 changes: 54 additions & 2 deletions nixos/modules/services/backup/borgmatic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,50 @@ let
cfg = config.services.borgmatic;
settingsFormat = pkgs.formats.yaml { };

postgresql = config.services.postgresql.package;
mysql = config.services.mysql.package;
requireSudo =
s:
s ? postgresql_databases
&& lib.any (d: d ? username && !(d ? password) && !(d ? pg_dump_command)) s.postgresql_databases;
addRequiredBinaries =
s:
s
// {
postgresql_databases = map (
d:
let
as_user = if d ? username && !(d ? password) then "${pkgs.sudo}/bin/sudo -u ${d.username} " else "";
in
{
pg_dump_command =
if d.name == "all" then
"${as_user}${postgresql}/bin/pg_dumpall"
else
"${as_user}${postgresql}/bin/pg_dump";
pg_restore_command = "${as_user}${postgresql}/bin/pg_restore";
psql_command = "${as_user}${postgresql}/bin/psql";
}
// d
) (s.postgresql_databases or [ ]);
mariadb_databases = map (
d:
{
mariadb_dump_command = "${mysql}/bin/mariadb-dump";
mariadb_command = "${mysql}/bin/mariadb";
}
// d
) (s.mariadb_databases or [ ]);
mysql_databases = map (
d:
{
mysql_dump_command = "${mysql}/bin/mysqldump";
mysql_command = "${mysql}/bin/mysql";
}
// d
) (s.mysql_databases or [ ]);
};

repository =
with lib.types;
submodule {
Expand Down Expand Up @@ -72,7 +116,10 @@ let
};
};

cfgfile = settingsFormat.generate "config.yaml" cfg.settings;
cfgfile = settingsFormat.generate "config.yaml" (addRequiredBinaries cfg.settings);

anycfgRequiresSudo =
requireSudo cfg.settings || lib.any requireSudo (lib.attrValues cfg.configurations);
in
{
options.services.borgmatic = {
Expand Down Expand Up @@ -106,7 +153,7 @@ in
// lib.mapAttrs' (
name: value:
lib.nameValuePair "borgmatic.d/${name}.yaml" {
source = settingsFormat.generate "${name}.yaml" value;
source = settingsFormat.generate "${name}.yaml" (addRequiredBinaries value);
}
) cfg.configurations;
borgmaticCheck =
Expand All @@ -132,6 +179,11 @@ in
environment.etc = configFiles;

systemd.packages = [ pkgs.borgmatic ];
systemd.services.borgmatic.path = [ pkgs.coreutils ];
systemd.services.borgmatic.serviceConfig = lib.optionalAttrs anycfgRequiresSudo {
NoNewPrivileges = false;
CapabilityBoundingSet = "CAP_DAC_READ_SEARCH CAP_NET_RAW CAP_SETUID CAP_SETGID";
};

# Workaround: https://github.com/NixOS/nixpkgs/issues/81138
systemd.timers.borgmatic.wantedBy = [ "timers.target" ];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ let
timeoutStr = if blCfg.timeout == null then "-1" else toString blCfg.timeout;

# The builder used to write during system activation
builder = import ./extlinux-conf-builder.nix { inherit pkgs; };
builder = import ./extlinux-conf-builder.nix { inherit lib pkgs; };
# The builder exposed in populateCmd, which runs on the build architecture
populateBuilder = import ./extlinux-conf-builder.nix { pkgs = pkgs.buildPackages; };
populateBuilder = import ./extlinux-conf-builder.nix { inherit lib; pkgs = pkgs.buildPackages; };
in
{
options = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ let
in
melpaBuild {
pname = "lsp-bridge";
version = "0-unstable-2024-12-27";
version = "0-unstable-2025-01-11";

src = fetchFromGitHub {
owner = "manateelazycat";
repo = "lsp-bridge";
rev = "402e65f372bb4268c0cd0514a12f0b0e9649c4af";
hash = "sha256-iUOjc/iEJMsR87Kk96729luQx34b924zlZejA2oPNZ0=";
rev = "6fd5eb21a174e6a04247a2f370b544dcd6cb2420";
hash = "sha256-+E1l0Ea0Db5ksX9tDW+cvNUMjT4be5i9qcI/rIvFKbY=";
};

patches = [
Expand Down
4 changes: 4 additions & 0 deletions pkgs/applications/editors/vim/plugins/deprecated.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
"date": "2023-08-08",
"new": "lspsaga-nvim"
},
"lua-async-await": {
"date": "2025-01-09",
"new": "lua-async"
},
"lua-dev-nvim": {
"date": "2022-10-14",
"new": "neodev-nvim"
Expand Down
Loading

0 comments on commit 591eeee

Please sign in to comment.