···6666 "Systemd ${group} field `${name}' must be a valid MAC address.";
67676868 assertNetdevMacAddress = name: group: attr:
6969- optional (attr ? ${name} && (! isMacAddress attr.${name} || attr.${name} != "none"))
6969+ optional (attr ? ${name} && (! isMacAddress attr.${name} && attr.${name} != "none"))
7070 "Systemd ${group} field `${name}` must be a valid MAC address or the special value `none`.";
71717272
+43-18
nixos/modules/services/web-apps/freshrss.nix
···77 poolName = "freshrss";
88in
99{
1010- meta.maintainers = with maintainers; [ etu stunkymonkey ];
1010+ meta.maintainers = with maintainers; [ etu stunkymonkey mattchrist ];
11111212 options.services.freshrss = {
1313 enable = mkEnableOption (mdDoc "FreshRSS feed reader");
···2727 };
28282929 passwordFile = mkOption {
3030- type = types.path;
3030+ type = types.nullOr types.path;
3131+ default = null;
3132 description = mdDoc "Password for the defaultUser for FreshRSS.";
3233 example = "/run/secrets/freshrss";
3334 };
···120121 user = mkOption {
121122 type = types.str;
122123 default = "freshrss";
123123- description = lib.mdDoc "User under which Freshrss runs.";
124124+ description = lib.mdDoc "User under which FreshRSS runs.";
125125+ };
126126+127127+ authType = mkOption {
128128+ type = types.enum [ "form" "http_auth" "none" ];
129129+ default = "form";
130130+ description = mdDoc "Authentication type for FreshRSS.";
124131 };
125132 };
126133···160167 };
161168 in
162169 mkIf cfg.enable {
170170+ assertions = mkIf (cfg.authType == "form") [
171171+ {
172172+ assertion = cfg.passwordFile != null;
173173+ message = ''
174174+ `passwordFile` must be supplied when using "form" authentication!
175175+ '';
176176+ }
177177+ ];
163178 # Set up a Nginx virtual host.
164179 services.nginx = mkIf (cfg.virtualHost != null) {
165180 enable = true;
···227242 settingsFlags = concatStringsSep " \\\n "
228243 (mapAttrsToList (k: v: "${k} ${toString v}") {
229244 "--default_user" = ''"${cfg.defaultUser}"'';
230230- "--auth_type" = ''"form"'';
245245+ "--auth_type" = ''"${cfg.authType}"'';
231246 "--base_url" = ''"${cfg.baseUrl}"'';
232247 "--language" = ''"${cfg.language}"'';
233248 "--db-type" = ''"${cfg.database.type}"'';
···255270 FRESHRSS_DATA_PATH = cfg.dataDir;
256271 };
257272258258- script = ''
259259- # do installation or reconfigure
260260- if test -f ${cfg.dataDir}/config.php; then
261261- # reconfigure with settings
262262- ./cli/reconfigure.php ${settingsFlags}
263263- ./cli/update-user.php --user ${cfg.defaultUser} --password "$(cat ${cfg.passwordFile})"
264264- else
265265- # check correct folders in data folder
266266- ./cli/prepare.php
267267- # install with settings
268268- ./cli/do-install.php ${settingsFlags}
269269- ./cli/create-user.php --user ${cfg.defaultUser} --password "$(cat ${cfg.passwordFile})"
270270- fi
271271- '';
273273+ script =
274274+ let
275275+ userScriptArgs = ''--user ${cfg.defaultUser} --password "$(cat ${cfg.passwordFile})"'';
276276+ updateUserScript = optionalString (cfg.authType == "form") ''
277277+ ./cli/update-user.php ${userScriptArgs}
278278+ '';
279279+ createUserScript = optionalString (cfg.authType == "form") ''
280280+ ./cli/create-user.php ${userScriptArgs}
281281+ '';
282282+ in
283283+ ''
284284+ # do installation or reconfigure
285285+ if test -f ${cfg.dataDir}/config.php; then
286286+ # reconfigure with settings
287287+ ./cli/reconfigure.php ${settingsFlags}
288288+ ${updateUserScript}
289289+ else
290290+ # check correct folders in data folder
291291+ ./cli/prepare.php
292292+ # install with settings
293293+ ./cli/do-install.php ${settingsFlags}
294294+ ${createUserScript}
295295+ fi
296296+ '';
272297 };
273298274299 systemd.services.freshrss-updater = {
···22, subversion, glibcLocales, sshSupport ? true, openssh ? null
33}:
4455-{ url, rev ? "HEAD", md5 ? "", sha256 ? ""
55+{ url, rev ? "HEAD", md5 ? "", sha256 ? "", hash ? ""
66, ignoreExternals ? false, ignoreKeywords ? false, name ? null
77, preferLocalBuild ? true
88}:
···34343535if md5 != "" then
3636 throw "fetchsvn does not support md5 anymore, please use sha256"
3737+else if hash != "" && sha256 != "" then
3838+ throw "Only one of sha256 or hash can be set"
3739else
3840stdenvNoCC.mkDerivation {
3941 name = name_;
···43454446 SVN_SSH = if sshSupport then "${buildPackages.openssh}/bin/ssh" else null;
45474646- outputHashAlgo = "sha256";
4848+ outputHashAlgo = if hash != "" then null else "sha256";
4749 outputHashMode = "recursive";
4848- outputHash = sha256;
5050+ outputHash = if hash != "" then
5151+ hash
5252+ else if sha256 != "" then
5353+ sha256
5454+ else
5555+ lib.fakeSha256;
49565057 inherit url rev ignoreExternals ignoreKeywords;
5158
+1-1
pkgs/development/libraries/qt-6/fetch.sh
···11-WGET_ARGS=( https://download.qt.io/official_releases/qt/6.5/6.5.1/submodules/ -A '*.tar.xz' )
11+WGET_ARGS=( https://download.qt.io/official_releases/qt/6.5/6.5.2/submodules/ -A '*.tar.xz' )
···17171818stdenv.mkDerivation rec {
1919 # Don't forget to update go.d.plugin.nix as well
2020- version = "1.40.1";
2020+ version = "1.41.0";
2121 pname = "netdata";
22222323 src = fetchFromGitHub {
2424 owner = "netdata";
2525 repo = "netdata";
2626 rev = "v${version}";
2727- sha256 = "sha256-4bYCsEeB0kEYtVFVXymFv7ELUo9RXoKbPjOlDKav8Rg=";
2727+ sha256 = "sha256-MZQ1ZTghH4bN7kCMqbyQlAGSgE70sYJxjiamTTH/6ds=";
2828 fetchSubmodules = true;
2929 };
3030···4949 # required to prevent plugins from relying on /etc
5050 # and /var
5151 ./no-files-in-etc-and-var.patch
5252- # The current IPC location is unsafe as it writes
5353- # a fixed path in /tmp, which is world-writable.
5454- # Therefore we put it into `/run/netdata`, which is owned
5555- # by netdata only.
5656- ./ipc-socket-in-run.patch
57525853 # Avoid build-only inputs in closure leaked by configure command:
5954 # https://github.com/NixOS/nixpkgs/issues/175693#issuecomment-1143344162
···14261426 pybitmessage = throw "pybitmessage was removed from nixpkgs as it is stuck on python2"; # Added 2022-01-01
14271427 pyext = throw "pyext was removed because it does not support python 3.11, is upstream unmaintained and was unused"; # Added 2022-11-21
14281428 pygmentex = texlive.bin.pygmentex; # Added 2019-12-15
14291429- pyload = throw "pyload has been removed from nixpkgs, as it was unmaintained"; # Added 2021-03-21
14291429+ pyload = throw "pyload has been removed from nixpkgs. Use pyload-ng instead."; # Added 2021-03-21
14301430 pynagsystemd = throw "pynagsystemd was removed as it was unmaintained and incompatible with recent systemd versions. Instead use its fork check_systemd"; # Added 2020-10-24
14311431 pyo3-pack = maturin;
14321432 pypi2nix = throw "pypi2nix has been removed due to being unmaintained";