nixos/programs/gnome-session: update examples

This commit is contained in:
Gabriel Arazas 2024-11-13 10:01:55 +08:00
parent 939c2cde67
commit 878c4c186f
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360

View File

@ -190,7 +190,7 @@ in
in in
gsdComponents ++ [ "org.gnome.Shell" ]; gsdComponents ++ [ "org.gnome.Shell" ];
targetUnit = { systemd.targetUnit = {
requires = [ "org.gnome.Shell.target" ]; requires = [ "org.gnome.Shell.target" ];
wants = builtins.map (c: "''${c}.target") (lib.lists.remove "org.gnome.Shell" sessionCfg.requiredComponents); wants = builtins.map (c: "''${c}.target") (lib.lists.remove "org.gnome.Shell" sessionCfg.requiredComponents);
}; };
@ -210,7 +210,7 @@ in
'''; ''';
description = "An i3 clone for Wayland."; description = "An i3 clone for Wayland.";
serviceUnit = { systemd.serviceUnit = {
serviceConfig = { serviceConfig = {
Type = "notify"; Type = "notify";
NotifyAccess = "all"; NotifyAccess = "all";
@ -223,7 +223,7 @@ in
}; };
}; };
targetUnit = { systemd.targetUnit = {
requisite = [ "gnome-session-initialized.target" ]; requisite = [ "gnome-session-initialized.target" ];
partOf = [ "gnome-session-initialized.target" ]; partOf = [ "gnome-session-initialized.target" ];
before = [ "gnome-session-initialized.target" ]; before = [ "gnome-session-initialized.target" ];
@ -236,7 +236,7 @@ in
'''; ''';
description = "A desktop widget system using layer-shell protocol."; description = "A desktop widget system using layer-shell protocol.";
serviceUnit = { systemd.serviceUnit = {
serviceConfig = { serviceConfig = {
OOMScoreAdjust = -1000; OOMScoreAdjust = -1000;
}; };
@ -247,7 +247,7 @@ in
startLimitIntervalSec = 15; startLimitIntervalSec = 15;
}; };
targetUnit = { systemd.targetUnit = {
requisite = [ "gnome-session-initialized.target" ]; requisite = [ "gnome-session-initialized.target" ];
partOf = [ "gnome-session-initialized.target" ]; partOf = [ "gnome-session-initialized.target" ];
before = [ "gnome-session-initialized.target" ]; before = [ "gnome-session-initialized.target" ];
@ -258,12 +258,12 @@ in
script = "''${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"; script = "''${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
description = "Authentication agent"; description = "Authentication agent";
serviceUnit = { systemd.serviceUnit = {
startLimitBurst = 5; startLimitBurst = 5;
startLimitIntervalSec = 15; startLimitIntervalSec = 15;
}; };
targetUnit = { systemd.targetUnit = {
partOf = [ partOf = [
"gnome-session.target" "gnome-session.target"
"graphical-session.target" "graphical-session.target"