Compare commits

...

3 Commits

Author SHA1 Message Date
fe5f98d8c8
feat(nix): install tidal-hifi
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 53s
2024-04-19 04:51:08 -05:00
4eb6928418
refactor(nix): use nixfmt-rfc-style over nixfmt 2024-04-19 04:50:42 -05:00
9d18ed882f
feat(nix): improve swww-daemon user service 2024-04-19 04:50:24 -05:00

View File

@ -63,7 +63,7 @@ in {
eza
ripgrep
fd
nixfmt
nixfmt-rfc-style
gtk2
lxappearance
webcord
@ -84,6 +84,7 @@ in {
helvum
brightnessctl
keyd
tidal-hifi
] ++ [ go (lib.hiPrio gotools) ] ++ [ age age-plugin-yubikey passage ]
++ [
libsForQt5.qtstyleplugins
@ -430,8 +431,20 @@ in {
};
services = {
swww-daemon = {
Service = {
Service =
let
cleanup-socket-script = pkgs.writeShellScript "swww-daemon-cleanup-socket" ''
# Remove the existing swww.socket if it exists, avoids some issues with swww-daemon
# startup where swww-daemon claims the address is already in use
if [[ -w "$XDG_RUNTIME_DIR/swww.socket" ]]; then
rm -f $XDG_RUNTIME_DIR/swww.socket || exit 1
fi
'';
in {
RestartSec = 3;
PassEnvironment = [ "XDG_RUNTIME_DIR" ];
ExecStartPre = "${cleanup-socket-script}";
ExecStopPost = "${cleanup-socket-script}";
ExecStart = "${pkgs.swww}/bin/swww-daemon";
};
Install.WantedBy = [ "compositor.target" ];