Skip to content

Commit

Permalink
Merge branch 'master' into 20250106-no-with-lib
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasew authored Jan 7, 2025
2 parents d737646 + f3dfdd4 commit 083ec14
Show file tree
Hide file tree
Showing 80 changed files with 793 additions and 277 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/eval.yml
Original file line number Diff line number Diff line change
Expand Up @@ -295,20 +295,6 @@ jobs:
REPOSITORY: ${{ github.repository }}
NUMBER: ${{ github.event.number }}

- name: Requesting maintainer reviews
run: |
# maintainers.json contains GitHub IDs. Look up handles to request reviews from.
# There appears to be no API to request reviews based on GitHub IDs
jq -r 'keys[]' comparison/maintainers.json \
| while read -r id; do gh api /user/"$id" --jq .login; done \
| GH_TOKEN=${{ steps.app-token.outputs.token }} result/bin/request-reviewers.sh "$REPOSITORY" "$NUMBER" "$AUTHOR"
env:
GH_TOKEN: ${{ github.token }}
REPOSITORY: ${{ github.repository }}
NUMBER: ${{ github.event.number }}
AUTHOR: ${{ github.event.pull_request.user.login }}

- name: Add eval summary to commit statuses
if: ${{ github.event_name == 'pull_request_target' }}
run: |
Expand All @@ -328,3 +314,17 @@ jobs:
GH_TOKEN: ${{ github.token }}
PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
NUMBER: ${{ github.event.number }}

- name: Requesting maintainer reviews
run: |
# maintainers.json contains GitHub IDs. Look up handles to request reviews from.
# There appears to be no API to request reviews based on GitHub IDs
jq -r 'keys[]' comparison/maintainers.json \
| while read -r id; do gh api /user/"$id" --jq .login; done \
| GH_TOKEN=${{ steps.app-token.outputs.token }} result/bin/request-reviewers.sh "$REPOSITORY" "$NUMBER" "$AUTHOR"
env:
GH_TOKEN: ${{ github.token }}
REPOSITORY: ${{ github.repository }}
NUMBER: ${{ github.event.number }}
AUTHOR: ${{ github.event.pull_request.user.login }}
12 changes: 10 additions & 2 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2129,6 +2129,7 @@
github = "asymmetric";
githubId = 101816;
name = "Lorenzo Manacorda";
matrix = "@asymmetric:matrix.dapp.org.uk";
};
aszlig = {
email = "[email protected]";
Expand Down Expand Up @@ -3314,6 +3315,13 @@
github = "brendanreis";
githubId = 10686906;
};
bretek = {
email = "[email protected]";
github = "bretek";
githubId = 79257746;
name = "Joseph Madden";
keys = [ { fingerprint = "3CF8 E983 2219 AB4B 0E19 158E 6112 1921 C9F8 117C"; } ];
};
brettlyons = {
email = "[email protected]";
github = "brettlyons";
Expand Down Expand Up @@ -7359,7 +7367,7 @@
github = "FedX-sudo";
githubId = 66258975;
name = "Fedx sudo";
matrix = "fedx:matrix.org";
matrix = "@fedx:matrix.org";
};
fee1-dead = {
email = "[email protected]";
Expand Down Expand Up @@ -12803,7 +12811,7 @@
};
lenny = {
name = "Lenny.";
matrix = "lenny@flipdot.org";
matrix = "@lenny:flipdot.org";
keys = [ { fingerprint = "6D63 2D4D 0CFE 8D53 F5FD C7ED 738F C800 6E9E A634"; } ];
};
leo248 = {
Expand Down
1 change: 1 addition & 0 deletions nixos/modules/module-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1133,6 +1133,7 @@
./services/networking/lxd-image-server.nix
./services/networking/magic-wormhole-mailbox-server.nix
./services/networking/matterbridge.nix
./services/networking/mptcpd.nix
./services/networking/microsocks.nix
./services/networking/mihomo.nix
./services/networking/minidlna.nix
Expand Down
10 changes: 9 additions & 1 deletion nixos/modules/services/misc/homepage-dashboard.nix
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ in

environment = {
HOMEPAGE_CONFIG_DIR = configDir;
HOMEPAGE_CACHE_DIR = "/var/cache/homepage-dashboard";
NIXPKGS_HOMEPAGE_CACHE_DIR = "/var/cache/homepage-dashboard";
PORT = toString cfg.listenPort;
LOG_TARGETS = lib.mkIf managedConfig "stdout";
};
Expand All @@ -254,6 +254,14 @@ in
ExecStart = lib.getExe cfg.package;
Restart = "on-failure";
};

preStart = ''
# Related:
# * https://github.com/NixOS/nixpkgs/issues/346016 ("homepage-dashboard: cache dir is not cleared upon version upgrade")
# * https://github.com/gethomepage/homepage/discussions/4560 ("homepage NixOS package does not clear cache on upgrade leaving broken state")
# * https://github.com/vercel/next.js/discussions/58864 ("Feature Request: Allow configuration of cache dir")
rm -rf "$NIXPKGS_HOMEPAGE_CACHE_DIR"/*
'';
};

networking.firewall = lib.mkIf cfg.openFirewall {
Expand Down
12 changes: 12 additions & 0 deletions nixos/modules/services/networking/dhcpcd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,18 @@ in
/run/current-system/systemd/bin/systemctl reload dhcpcd.service
'';

security.polkit.extraConfig = lib.mkIf config.services.resolved.enable ''
polkit.addRule(function(action, subject) {
if (action.id == 'org.freedesktop.resolve1.revert' ||
action.id == 'org.freedesktop.resolve1.set-dns-servers' ||
action.id == 'org.freedesktop.resolve1.set-domains') {
if (subject.user == '${config.systemd.services.dhcpcd.serviceConfig.User}') {
return polkit.Result.YES;
}
}
});
'';

};

}
36 changes: 36 additions & 0 deletions nixos/modules/services/networking/mptcpd.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
config,
lib,
pkgs,
...
}:
let

cfg = config.services.mptcpd;

in

{

options = {

services.mptcpd = {

enable = lib.mkEnableOption "the Multipath TCP path management daemon";

package = lib.mkPackageOption pkgs "mptcpd" { };

};

};

config = lib.mkIf cfg.enable {

environment.systemPackages = [ cfg.package ];

systemd.packages = [ cfg.package ];

};

meta.maintainers = with lib.maintainers; [ nim65s ];
}
8 changes: 7 additions & 1 deletion nixos/tests/homepage-dashboard.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import ./make-test-python.nix (
{
services.homepage-dashboard = {
enable = true;
settings.title = "custom";
settings.title = "test title rodUsEagid"; # something random/unique
};
};

Expand All @@ -38,6 +38,12 @@ import ./make-test-python.nix (
# Ensure /etc/homepage-dashboard is created and unmanaged conf location isn't.
managed_conf.succeed("test -d /etc/homepage-dashboard")
managed_conf.fail("test -f /var/lib/private/homepage-dashboard/settings.yaml")
# Ensure that we see the custom title *only in the managed config*
page = managed_conf.succeed("curl --fail http://localhost:8082/")
assert "test title rodUsEagid" in page, "Custom title not found"
page = unmanaged_conf.succeed("curl --fail http://localhost:8082/")
assert "test title rodUsEagid" not in page, "Custom title found where it shouldn't be"
'';
}
)
26 changes: 15 additions & 11 deletions pkgs/applications/backup/vorta/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@

python3Packages.buildPythonApplication rec {
pname = "vorta";
version = "0.9.1";
version = "0.10.3";
pyproject = true;

src = fetchFromGitHub {
owner = "borgbase";
repo = "vorta";
rev = "v${version}";
hash = "sha256-wGlnldS2p92NAYAyRPqKjSneIlbdsOiJ0N42n/mMGFI=";
tag = "v${version}";
hash = "sha256-VhM782mFWITA0VlKw0sBIu/UxUqlFLgq5XVdCpQggCw=";
};

nativeBuildInputs = [
Expand Down Expand Up @@ -78,15 +78,19 @@ python3Packages.buildPythonApplication rec {
export QT_QPA_PLATFORM=offscreen
'';

disabledTestPaths = [
# QObject::connect: No such signal QPlatformNativeInterface::systemTrayWindowChanged(QScreen*)
"tests/test_excludes.py"
"tests/integration"
"tests/unit"
];
disabledTestPaths =
[
# QObject::connect: No such signal QPlatformNativeInterface::systemTrayWindowChanged(QScreen*) "tests/test_excludes.py"
"tests/integration"
"tests/unit"
]
++ lib.optionals stdenv.hostPlatform.isLinux [
# Darwin-only test
"tests/network_manager/test_darwin.py"
];

meta = {
changelog = "https://github.com/borgbase/vorta/releases/tag/${src.rev}";
meta = with lib; {
changelog = "https://github.com/borgbase/vorta/releases/tag/v${version}";
description = "Desktop Backup Client for Borg";
homepage = "https://vorta.borgbase.com/";
license = lib.licenses.gpl3Only;
Expand Down
12 changes: 12 additions & 0 deletions pkgs/applications/editors/vim/plugins/generated.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11290,6 +11290,18 @@ final: prev:
meta.homepage = "https://github.com/rust-lang/rust.vim/";
};

rzls-nvim = buildVimPlugin {
pname = "rzls.nvim";
version = "2024-12-24";
src = fetchFromGitHub {
owner = "tris203";
repo = "rzls.nvim";
rev = "494a0a377d84f7424fc95d5f04f57027e24dedd7";
sha256 = "0fb8r1csdqiggbb68p22a0q3624ck9752z9ay9iarqkkap0z9z7c";
};
meta.homepage = "https://github.com/tris203/rzls.nvim/";
};

sad-vim = buildVimPlugin {
pname = "sad.vim";
version = "2019-02-18";
Expand Down
4 changes: 4 additions & 0 deletions pkgs/applications/editors/vim/plugins/overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2656,6 +2656,10 @@ in
dependencies = [ self.nvim-lspconfig ];
};

rzls-nvim = super.rzls-nvim.overrideAttrs {
dependencies = [ self.roslyn-nvim ];
};

samodostal-image-nvim = super.samodostal-image-nvim.overrideAttrs {
dependencies = [ self.plenary-nvim ];
};
Expand Down
1 change: 1 addition & 0 deletions pkgs/applications/editors/vim/plugins/vim-plugin-names
Original file line number Diff line number Diff line change
Expand Up @@ -935,6 +935,7 @@ https://github.com/keith/rspec.vim/,,
https://github.com/ccarpita/rtorrent-syntax-file/,,
https://github.com/simrat39/rust-tools.nvim/,,
https://github.com/rust-lang/rust.vim/,,
https://github.com/tris203/rzls.nvim/,HEAD,
https://github.com/hauleth/sad.vim/,,
https://github.com/vmware-archive/salt-vim/,,
https://github.com/samodostal/image.nvim/,HEAD,samodostal-image-nvim
Expand Down
6 changes: 3 additions & 3 deletions pkgs/by-name/aa/aaaaxy/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@

buildGoModule rec {
pname = "aaaaxy";
version = "1.5.220";
version = "1.5.250";

src = fetchFromGitHub {
owner = "divVerent";
repo = pname;
rev = "v${version}";
hash = "sha256-XNLX5LDbL29Ko0zstgo+O5V0oe37dSChk8iJeVrYlLA=";
hash = "sha256-+avaHICyaNbNCaOWb+AgpEq4SONacFJ//AZx+2Aa7SY=";
fetchSubmodules = true;
};

vendorHash = "sha256-tDQKU/1fKDPCrUHfFi79u4d2XwOqjvTuIlsUAB74e4c=";
vendorHash = "sha256-mDVpxPkRGbpAtZ0jCKd3uOxwUdBqjd0kISg22JdpLpE=";

buildInputs = [
alsa-lib
Expand Down
Loading

0 comments on commit 083ec14

Please sign in to comment.