Merge pull request #72959 from worldofpeace/gnome-flashback-systemd
nixos/gnome3: add gnome-flashback to systemd.packages
This commit is contained in:
commit
470254a6da
2 changed files with 15 additions and 0 deletions
|
@ -184,6 +184,13 @@ in
|
|||
enableGnomeKeyring = true;
|
||||
};
|
||||
|
||||
systemd.packages = with pkgs.gnome3; [
|
||||
gnome-flashback
|
||||
] ++ (map
|
||||
(wm: gnome-flashback.mkSystemdTargetForWm {
|
||||
inherit (wm) wmName;
|
||||
}) cfg.flashback.customSessions);
|
||||
|
||||
services.dbus.packages = [
|
||||
pkgs.gnome3.gnome-screensaver
|
||||
];
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
, writeTextFile
|
||||
, writeShellScriptBin
|
||||
, xkeyboard_config
|
||||
, runCommand
|
||||
}:
|
||||
|
||||
let
|
||||
|
@ -141,6 +142,13 @@ let
|
|||
DesktopNames=GNOME-Flashback;GNOME;
|
||||
'';
|
||||
};
|
||||
|
||||
mkSystemdTargetForWm = { wmName }:
|
||||
runCommand "gnome-flashback-${wmName}.target" {} ''
|
||||
mkdir -p $out/lib/systemd/user
|
||||
cp "${gnome-flashback}/lib/systemd/user/gnome-session-x11@gnome-flashback-metacity.target" \
|
||||
"$out/lib/systemd/user/gnome-session-x11@gnome-flashback-${wmName}.target"
|
||||
'';
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
|
Loading…
Reference in a new issue