Unverified Commit 2f9191eb authored by Vladimír Čunát's avatar Vladimír Čunát
Browse files

Merge branch 'master' into staging-next

parents b8ce4c46 5ebc5509
Loading
Loading
Loading
Loading
+11 −24
Original line number Diff line number Diff line
@@ -19,18 +19,6 @@ in
      description = mdDoc "The ntfy.sh package to use.";
    };

    user = mkOption {
      default = "ntfy-sh";
      type = types.str;
      description = lib.mdDoc "User the ntfy-sh server runs under.";
    };

    group = mkOption {
      default = "ntfy-sh";
      type = types.str;
      description = lib.mdDoc "Primary group of ntfy-sh user.";
    };

    settings = mkOption {
      type = types.submodule { freeformType = settingsFormat.type; };

@@ -61,6 +49,9 @@ in

      services.ntfy-sh.settings = {
        auth-file = mkDefault "/var/lib/ntfy-sh/user.db";
        listen-http = mkDefault "127.0.0.1:2586";
        attachment-cache-dir = mkDefault "/var/lib/ntfy-sh/attachments";
        cache-file = mkDefault "/var/lib/ntfy-sh/cache-file.db";
      };

      systemd.services.ntfy-sh = {
@@ -70,10 +61,15 @@ in
        after = [ "network.target" ];

        serviceConfig = {
          ExecStartPre = [
            "${pkgs.coreutils}/bin/touch ${cfg.settings.auth-file}"
            "${pkgs.coreutils}/bin/mkdir -p ${cfg.settings.attachment-cache-dir}"
            "${pkgs.coreutils}/bin/touch ${cfg.settings.cache-file}"
          ];
          ExecStart = "${cfg.package}/bin/ntfy serve -c ${configuration}";
          User = cfg.user;
          StateDirectory = "ntfy-sh";

          DynamicUser = true;
          AmbientCapabilities = "CAP_NET_BIND_SERVICE";
          PrivateTmp = true;
          NoNewPrivileges = true;
@@ -88,17 +84,8 @@ in
          RestrictNamespaces = true;
          RestrictRealtime = true;
          MemoryDenyWriteExecute = true;
        };
      };

      users.groups = optionalAttrs (cfg.group == "ntfy-sh") {
        ntfy-sh = { };
      };

      users.users = optionalAttrs (cfg.user == "ntfy-sh") {
        ntfy-sh = {
          isSystemUser = true;
          group = cfg.group;
          # Upstream Requirements
          LimitNOFILE = 20500;
        };
      };
    };
+2 −0
Original line number Diff line number Diff line
@@ -19,5 +19,7 @@ import ./make-test-python.nix {
    notif = json.loads(machine.succeed("curl -s localhost:80/test/json?poll=1"))

    assert msg == notif["message"], "Wrong message"

    machine.succeed("ntfy user list")
  '';
}
+1 −0
Original line number Diff line number Diff line
@@ -69,6 +69,7 @@ import ../make-test-python.nix ({ pkgs, lib, ... }: {
      start_all()

      server.wait_for_unit("shadowsocks-libev.service")
      server.wait_for_unit("nginx.service")
      client.wait_for_unit("shadowsocks-client.service")

      client.fail(
+2 −2
Original line number Diff line number Diff line
@@ -8,11 +8,11 @@

stdenv.mkDerivation rec {
  pname = "urbackup-client";
  version = "2.5.20";
  version = "2.5.24";

  src = fetchzip {
    url = "https://hndl.urbackup.org/Client/${version}/urbackup-client-${version}.tar.gz";
    sha256 = "sha256-i1g3xUhspqQRfIUhy6STOWNuncK3tMFocJw652r1X9g=";
    sha256 = "sha256-n0/NVClZz6ANgEdPCtdZxsEvllIl32vwDjC2nq5R8Z4=";
  };

  buildInputs = [
+3 −3
Original line number Diff line number Diff line
@@ -29,13 +29,13 @@

buildDotnetModule rec {
  pname = "ryujinx";
  version = "1.1.819"; # Based off of the official github actions builds: https://github.com/Ryujinx/Ryujinx/actions/workflows/release.yml
  version = "1.1.826"; # Based off of the official github actions builds: https://github.com/Ryujinx/Ryujinx/actions/workflows/release.yml

  src = fetchFromGitHub {
    owner = "Ryujinx";
    repo = "Ryujinx";
    rev = "4ca78eded52f21089400cc28351b9353279b8171";
    sha256 = "13g5sgql14rr7qmsiavm6kkjkv9sqqq7cmwpy9iiahbfzc9w1wc1";
    rev = "42b9c1e8fede88880454154f8c3683f1f8424ed9";
    sha256 = "1r879kvs6v08lrxw75xs5jsffmf8j6bb7bs9szrrgj24aza0kl72";
  };

  dotnet-sdk = dotnetCorePackages.sdk_7_0;
Loading