enable systemd fixes

This commit is contained in:
John Bowdre 2023-10-01 14:19:43 -05:00
parent 6d4bfdb7b3
commit f54e3593a0
2 changed files with 18 additions and 24 deletions

View file

@ -2,7 +2,7 @@
imports = [
./binds.nix
# ./systemd-fixes.nix
./systemd-fixes.nix
./tty-init.nix
../wayland-wm
];

View file

@ -1,9 +1,4 @@
{ lib, config, ... }:
let
cfg = config.wayland.windowManager.hyprland;
in
{
config = lib.mkIf (cfg.enable && cfg.systemdIntegration) {
{ lib, config, ... }: {
# stolen from https://github.com/alebastr/sway-systemd/commit/0fdb2c4b10beb6079acd6073c5b3014bd58d3b74
systemd.user.targets.hyprland-session-shutdown = {
Unit = {
@ -22,7 +17,6 @@ in
"hyprland-session.target"
];
};
};
wayland.windowManager.hyprland.settings.bind = lib.mkAfter [
"SUPERSHIFT,e,exec,systemctl --user start hyprland-session-shutdown.target; hyprctl dispatch exit"
];