mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 07:13:55 -05:00
home: fix desktop services (#88)
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
* waybar: increase to proper height 34px * sway: restart sway-session-target at launch * home/services: bind desktop services to sway and hyprland
This commit is contained in:
parent
7bb74d3da9
commit
aea06d5eda
|
@ -15,6 +15,12 @@ in {
|
||||||
|
|
||||||
systemd = {
|
systemd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
extraCommands = lib.mkDefault [
|
||||||
|
"systemctl --user stop sway-session.target"
|
||||||
|
"systemctl --user start sway-session.target"
|
||||||
|
];
|
||||||
|
|
||||||
variables = ["--all"];
|
variables = ["--all"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -11,5 +11,11 @@ in {
|
||||||
latitude = lib.mkDefault "33.74";
|
latitude = lib.mkDefault "33.74";
|
||||||
longitude = lib.mkDefault "-84.38";
|
longitude = lib.mkDefault "-84.38";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.user.services.gammastep = {
|
||||||
|
Install.WantedBy = lib.mkForce ["hyprland-session.target" "sway-session.target"];
|
||||||
|
Service.Restart = lib.mkForce "no";
|
||||||
|
Unit.BindsTo = ["hyprland-session.target" "sway-session.target"];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,6 +41,7 @@ in {
|
||||||
systemd.user.services.mako = {
|
systemd.user.services.mako = {
|
||||||
Unit = {
|
Unit = {
|
||||||
After = "graphical-session.target";
|
After = "graphical-session.target";
|
||||||
|
BindsTo = ["hyprland-session.target" "sway-session.target"];
|
||||||
Description = "Lightweight Wayland notification daemon";
|
Description = "Lightweight Wayland notification daemon";
|
||||||
Documentation = "man:mako(1)";
|
Documentation = "man:mako(1)";
|
||||||
PartOf = "graphical-session.target";
|
PartOf = "graphical-session.target";
|
||||||
|
@ -50,8 +51,7 @@ in {
|
||||||
BusName = "org.freedesktop.Notifications";
|
BusName = "org.freedesktop.Notifications";
|
||||||
ExecReload = ''${lib.getExe' pkgs.mako "makoctl"} reload'';
|
ExecReload = ''${lib.getExe' pkgs.mako "makoctl"} reload'';
|
||||||
ExecStart = "${lib.getExe pkgs.mako}";
|
ExecStart = "${lib.getExe pkgs.mako}";
|
||||||
Restart = "on-failure";
|
Restart = lib.mkForce "no";
|
||||||
RestartSec = 5;
|
|
||||||
Type = "dbus";
|
Type = "dbus";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -10,14 +10,14 @@ in {
|
||||||
systemd.user.services.pipewire-inhibit-idle = {
|
systemd.user.services.pipewire-inhibit-idle = {
|
||||||
Unit = {
|
Unit = {
|
||||||
After = "graphical-session.target";
|
After = "graphical-session.target";
|
||||||
|
BindsTo = ["hyprland-session.target" "sway-session.target"];
|
||||||
Description = "inhibit idle when audio is playing with Pipewire.";
|
Description = "inhibit idle when audio is playing with Pipewire.";
|
||||||
PartOf = "graphical-session.target";
|
PartOf = "graphical-session.target";
|
||||||
};
|
};
|
||||||
|
|
||||||
Service = {
|
Service = {
|
||||||
ExecStart = lib.getExe pkgs.wayland-pipewire-idle-inhibit;
|
ExecStart = lib.getExe pkgs.wayland-pipewire-idle-inhibit;
|
||||||
Restart = "on-failure";
|
Restart = "no";
|
||||||
RestartSec = 5;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Install.WantedBy = ["hyprland-session.target" "sway-session.target"];
|
Install.WantedBy = ["hyprland-session.target" "sway-session.target"];
|
||||||
|
|
|
@ -89,14 +89,14 @@ in {
|
||||||
systemd.user.services.randomWallpaper = {
|
systemd.user.services.randomWallpaper = {
|
||||||
Unit = {
|
Unit = {
|
||||||
After = "graphical-session.target";
|
After = "graphical-session.target";
|
||||||
|
BindsTo = ["hyprland-session.target" "sway-session.target"];
|
||||||
Description = "Lightweight swaybg-based random wallpaper daemon.";
|
Description = "Lightweight swaybg-based random wallpaper daemon.";
|
||||||
PartOf = "graphical-session.target";
|
PartOf = "graphical-session.target";
|
||||||
};
|
};
|
||||||
|
|
||||||
Service = {
|
Service = {
|
||||||
ExecStart = "${wallpaperD}";
|
ExecStart = "${wallpaperD}";
|
||||||
Restart = "on-failure";
|
Restart = "no";
|
||||||
RestartSec = 5;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Install.WantedBy = ["hyprland-session.target" "sway-session.target"];
|
Install.WantedBy = ["hyprland-session.target" "sway-session.target"];
|
||||||
|
|
|
@ -60,10 +60,8 @@ in {
|
||||||
|
|
||||||
systemd.user.services.swayidle = {
|
systemd.user.services.swayidle = {
|
||||||
Install.WantedBy = lib.mkForce ["hyprland-session.target" "sway-session.target"];
|
Install.WantedBy = lib.mkForce ["hyprland-session.target" "sway-session.target"];
|
||||||
Service = {
|
Service.Restart = lib.mkForce "no";
|
||||||
Restart = lib.mkForce "on-failure";
|
Unit.BindsTo = ["hyprland-session.target" "sway-session.target"];
|
||||||
RestartSec = 5;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,11 +18,8 @@ in {
|
||||||
|
|
||||||
systemd.user.services.swayosd = {
|
systemd.user.services.swayosd = {
|
||||||
Install.WantedBy = lib.mkForce ["hyprland-session.target" "sway-session.target"];
|
Install.WantedBy = lib.mkForce ["hyprland-session.target" "sway-session.target"];
|
||||||
|
Service.Restart = lib.mkForce "no";
|
||||||
Service = {
|
Unit.BindsTo = ["hyprland-session.target" "sway-session.target"];
|
||||||
Restart = lib.mkForce "on-failure";
|
|
||||||
RestartSec = 5;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.configFile."swayosd/style.css" = {
|
xdg.configFile."swayosd/style.css" = {
|
||||||
|
|
|
@ -357,10 +357,8 @@ in {
|
||||||
|
|
||||||
systemd.user.services.waybar = {
|
systemd.user.services.waybar = {
|
||||||
Install.WantedBy = lib.mkForce ["hyprland-session.target" "sway-session.target"];
|
Install.WantedBy = lib.mkForce ["hyprland-session.target" "sway-session.target"];
|
||||||
Service = {
|
Service.Restart = lib.mkForce "no";
|
||||||
Restart = lib.mkForce "on-failure";
|
Unit.BindsTo = ["hyprland-session.target" "sway-session.target"];
|
||||||
RestartSec = 5;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.configFile."nwg-drawer/drawer.css".text = ''
|
xdg.configFile."nwg-drawer/drawer.css".text = ''
|
||||||
|
|
Loading…
Reference in a new issue