diff options
| author | lassulus <lassulus@lassul.us> | 2021-01-18 21:13:46 +0100 |
|---|---|---|
| committer | lassulus <lassulus@lassul.us> | 2021-01-18 21:13:46 +0100 |
| commit | c39fea09607ec693055e0981c1a4b81a6c48ae83 (patch) | |
| tree | 6bf9b971dfec7fc48f177f39c840bf8d2879f4ca /tv/3modules | |
| parent | 5b91fd162e20c054075f4535f69b6e51a8bdb952 (diff) | |
| parent | 455ad96eca5d7c30b6115aeb81cc1c9b6f1321c8 (diff) | |
Merge remote-tracking branch 'ni/master'
Diffstat (limited to 'tv/3modules')
| -rw-r--r-- | tv/3modules/slock.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tv/3modules/slock.nix b/tv/3modules/slock.nix index 53f7f1f..926adc8 100644 --- a/tv/3modules/slock.nix +++ b/tv/3modules/slock.nix @@ -28,6 +28,9 @@ in { }); ''; systemd.services."slock-${cfg.user.name}@" = { + conflicts = [ + "picom@%i.target" + ]; environment = { DISPLAY = ":%I"; LD_PRELOAD = pkgs.runCommandCC "slock-${cfg.user.name}.so" { @@ -61,6 +64,8 @@ in { restartIfChanged = false; serviceConfig = { ExecStart = "${pkgs.slock}/bin/slock"; + ExecStopPost = + "+${pkgs.systemd}/bin/systemctl start xsession@%i.target"; OOMScoreAdjust = -1000; Restart = "on-failure"; RestartSec = "100ms"; |
