Skip to content

Commit

Permalink
Merge branch 'master' into staging-next
Browse files Browse the repository at this point in the history
Manually fixed a merge conflict between #227900
and #246022.
  • Loading branch information
tjni committed Aug 26, 2023
2 parents 8adf696 + a7d27e8 commit 80a74ec
Show file tree
Hide file tree
Showing 51 changed files with 863 additions and 394 deletions.
9 changes: 9 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15512,6 +15512,15 @@
githubId = 293035;
name = "Shawn Dellysse";
};
shayne = {
email = "shaynesweeney@gmail.com";
github = "shayne";
githubId = 79330;
name = "Shayne Sweeney";
keys = [{
fingerprint = "AFCB 29A0 F12E F367 9575 DABE 69DA 13E8 6BF4 03B0";
}];
};
shazow = {
email = "andrey.petrov@shazow.net";
github = "shazow";
Expand Down
2 changes: 2 additions & 0 deletions nixos/doc/manual/release-notes/rl-2311.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@

- The ISC DHCP package and corresponding module have been removed, because they are end of life upstream. See https://www.isc.org/blogs/isc-dhcp-eol/ for details and switch to a different DHCP implementation like kea or dnsmasq.

- `odoo` now defaults to 16, updated from 15.

- `util-linux` is now supported on Darwin and is no longer an alias to `unixtools`. Use the `unixtools.util-linux` package for access to the Apple variants of the utilities.

- `services.keyd` changed API. Now you can create multiple configuration files.
Expand Down
12 changes: 11 additions & 1 deletion nixos/modules/programs/tmux.nix
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ let
set -s escape-time ${toString cfg.escapeTime}
set -g history-limit ${toString cfg.historyLimit}
${cfg.extraConfigBeforePlugins}
${lib.optionalString (cfg.plugins != []) ''
# Run plugins
${lib.concatMapStringsSep "\n" (x: "run-shell ${x.rtp}") cfg.plugins}
Expand Down Expand Up @@ -108,10 +110,18 @@ in {
description = lib.mdDoc "Time in milliseconds for which tmux waits after an escape is input.";
};

extraConfigBeforePlugins = mkOption {
default = "";
description = lib.mdDoc ''
Additional contents of /etc/tmux.conf, to be run before sourcing plugins.
'';
type = types.lines;
};

extraConfig = mkOption {
default = "";
description = lib.mdDoc ''
Additional contents of /etc/tmux.conf
Additional contents of /etc/tmux.conf, to be run after sourcing plugins.
'';
type = types.lines;
};
Expand Down
8 changes: 7 additions & 1 deletion nixos/modules/services/finance/odoo.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ in
description = lib.mdDoc ''
Odoo configuration settings. For more details see <https://www.odoo.com/documentation/15.0/administration/install/deploy.html>
'';
example = literalExpression ''
options = {
db_user = "odoo";
db_password="odoo";
};
'';
};

domain = mkOption {
Expand Down Expand Up @@ -112,11 +118,11 @@ in
services.postgresql = {
enable = true;

ensureDatabases = [ "odoo" ];
ensureUsers = [{
name = "odoo";
ensurePermissions = { "DATABASE odoo" = "ALL PRIVILEGES"; };
}];
ensureDatabases = [ "odoo" ];
};
});
}
12 changes: 11 additions & 1 deletion nixos/modules/services/monitoring/vmagent.nix
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,16 @@ in {
Whether to open the firewall for the default ports.
'';
};

extraArgs = mkOption {
type = types.listOf types.str;
default = [];
description = lib.mdDoc ''
Extra args to pass to `vmagent`. See the docs:
<https://docs.victoriametrics.com/vmagent.html#advanced-usage>
or {command}`vmagent -help` for more information.
'';
};
};

config = mkIf cfg.enable {
Expand Down Expand Up @@ -90,7 +100,7 @@ in {
Type = "simple";
Restart = "on-failure";
WorkingDirectory = cfg.dataDir;
ExecStart = "${cfg.package}/bin/vmagent -remoteWrite.url=${cfg.remoteWriteUrl} -promscrape.config=${prometheusConfig}";
ExecStart = "${cfg.package}/bin/vmagent -remoteWrite.url=${cfg.remoteWriteUrl} -promscrape.config=${prometheusConfig} ${escapeShellArgs cfg.extraArgs}";
};
};

Expand Down
1 change: 1 addition & 0 deletions nixos/modules/services/x11/display-managers/sddm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ in

environment.systemPackages = [ sddm ];
services.dbus.packages = [ sddm ];
systemd.tmpfiles.packages = [ sddm ];

# We're not using the upstream unit, so copy these: https://github.com/sddm/sddm/blob/develop/services/sddm.service.in
systemd.services.display-manager.after = [
Expand Down
16 changes: 16 additions & 0 deletions pkgs/applications/editors/vscode/extensions/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2610,6 +2610,22 @@ let
};
};

ms-vscode-remote.remote-containers = buildVscodeMarketplaceExtension {
mktplcRef = {
name = "remote-containers";
publisher = "ms-vscode-remote";
version = "0.305.0";
sha256 = "sha256-srSRD/wgDbQo9P1uJk8YtcXPZO62keG5kRnp1TmHqOc=";
};
meta = {
description = "Open any folder or repository inside a Docker container.";
downloadPage = "Use a container as your development environment";
homepage = "https://code.visualstudio.com/docs/devcontainers/containers";
license = lib.licenses.unfree;
maintainers = [ lib.maintainers.anthonyroussel ];
};
};

ms-vscode-remote.remote-ssh = callPackage ./ms-vscode-remote.remote-ssh { };

ms-vsliveshare.vsliveshare = callPackage ./ms-vsliveshare.vsliveshare { };
Expand Down
8 changes: 4 additions & 4 deletions pkgs/applications/finance/odoo/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,19 @@ let
};
};

odoo_version = "15.0";
odoo_release = "20230317";
odoo_version = "16.0";
odoo_release = "20230722";
in python.pkgs.buildPythonApplication rec {
pname = "odoo";
version = "${odoo_version}.${odoo_release}";

format = "setuptools";

# latest release is at https://github.com/odoo/docker/blob/master/15.0/Dockerfile
# latest release is at https://github.com/odoo/docker/blob/master/16.0/Dockerfile
src = fetchurl {
url = "https://nightly.odoo.com/${odoo_version}/nightly/src/odoo_${version}.tar.gz";
name = "${pname}-${version}";
hash = "sha256-nJEFPtZhq7DLLDCL9xt0RV75d/a45o6hBKsUlQAWh1U="; # odoo
hash = "sha256-DV5JBY+2gq5mUfcvN9S5xkd+ufgEBjvyvBY1X7pPFPk="; # odoo
};

unpackPhase = ''
Expand Down
16 changes: 9 additions & 7 deletions pkgs/applications/networking/cluster/kuma/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,28 @@
, components ? lib.optionals isFull [
"kumactl"
"kuma-cp"
"kuma-prometheus-sd"
"kuma-dp"
]
}:

buildGoModule rec {
inherit pname ;
version = "1.8.1";
tags = lib.optionals enableGateway ["gateway"];
vendorSha256 = "sha256-69uXHvpQMeFwQbejMpfQPS8DDXJyVsnn59WUEJpSeng=";
inherit pname;
version = "2.3.1";
tags = lib.optionals enableGateway [ "gateway" ];

src = fetchFromGitHub {
owner = "kumahq";
repo = "kuma";
rev = version;
sha256 = "sha256-hNfgiMX3aMb8yjXjFKz73MczOeJyOI3Tna/NRSJBSzs=";
hash = "sha256-BayfHBTTqgc0ArD6ux9HOqaZy0GrEpqgDa7zHZtiG2I=";
};

vendorHash = "sha256-St+jGks7ojKrgecmN7UJ9FjGrmjtgEKsunSY+4itUyA=";

# no test files
doCheck = false;

nativeBuildInputs = [installShellFiles] ++ lib.optionals isFull [coredns];
nativeBuildInputs = [ installShellFiles ] ++ lib.optionals isFull [ coredns ];

preBuild = ''
export HOME=$TMPDIR
Expand Down Expand Up @@ -59,6 +60,7 @@ buildGoModule rec {
meta = with lib; {
description = "Service mesh controller";
homepage = "https://kuma.io/";
changelog = "https://github.com/kumahq/kuma/blob/${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ zbioe ];
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,30 @@
{ lib
, fetchFromGitLab
, fetchFromGitHub
, imagemagick
, mesa
, libdrm
, flutter
, pulseaudio
, makeDesktopItem
, gnome
}:

let
libwebrtcRpath = lib.makeLibraryPath [ mesa libdrm ];
in
flutter.buildFlutterApplication rec {
pname = "fluffychat";
version = "1.12.1";
version = "1.13.0";

src = fetchFromGitLab {
owner = "famedly";
src = fetchFromGitHub {
owner = "krille-chan";
repo = "fluffychat";
rev = "v${version}";
hash = "sha256-F4oVscw5L8iQZtz5K+yo4tlPYYv1wfs88oyq5Uds20I=";
rev = "refs/tags/v${version}";
hash = "sha256-w29Nxs/d0b18jMvWnrRUjEGqY4jGtuEGodg+ncCAaVc=";
};

depsListFile = ./deps.json;
vendorHash = "sha256-u0cQ5ejyxhw4du3jXRB8oWsAlMtbw5nX+SMUUCuwklE=";
vendorHash = "sha256-Ot96+EF8PgYQmXn0hvIWzN8StuzTgQzakRO3yf7PJAU=";

desktopItem = makeDesktopItem {
name = "Fluffychat";
Expand All @@ -30,6 +36,7 @@ flutter.buildFlutterApplication rec {
};

nativeBuildInputs = [ imagemagick ];
runtimeDependencies = [ pulseaudio ];
extraWrapProgramArgs = "--prefix PATH : ${gnome.zenity}/bin";
postInstall = ''
FAV=$out/app/data/flutter_assets/assets/favicon.png
Expand All @@ -45,8 +52,12 @@ flutter.buildFlutterApplication rec {
done
substituteInPlace $out/share/applications/*.desktop \
--subst-var out
patchelf --add-rpath ${libwebrtcRpath} $out/app/lib/libwebrtc.so
'';

env.NIX_LDFLAGS = "-rpath-link ${libwebrtcRpath}";

meta = with lib; {
description = "Chat with your friends (matrix client)";
homepage = "https://fluffychat.im/";
Expand Down
Loading

0 comments on commit 80a74ec

Please sign in to comment.