Regenerated
This commit is contained in:
+392
-391
File diff suppressed because it is too large
Load Diff
+14
-13
@@ -2035,7 +2035,8 @@ in
|
|||||||
environment.systemPackages = [ pkgs.swaynotificationcenter ];
|
environment.systemPackages = [ pkgs.swaynotificationcenter ];
|
||||||
|
|
||||||
home-manager.users.${username} = {
|
home-manager.users.${username} = {
|
||||||
services.swaync.enable = true;
|
# Do NOT enable services.swaync — it would claim the config files
|
||||||
|
# and conflict with our home.file entries below.
|
||||||
|
|
||||||
home.file = {
|
home.file = {
|
||||||
".config/swaync/config.json" = {
|
".config/swaync/config.json" = {
|
||||||
@@ -2050,19 +2051,19 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Autostart swaync as a systemd user service instead
|
# Autostart swaync as a systemd user service instead
|
||||||
systemd.user.services.swaync = {
|
systemd.user.services.swaync = {
|
||||||
description = "SwayNotificationCenter";
|
description = "SwayNotificationCenter";
|
||||||
after = [ "graphical-session.target" ];
|
after = [ "graphical-session.target" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = "${pkgs.swaynotificationcenter}/bin/swaync";
|
ExecStart = "${pkgs.swaynotificationcenter}/bin/swaync";
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
Environment = [
|
Environment = [
|
||||||
"WAYLAND_DISPLAY=${config.environment.sessionVariables.WAYLAND_DISPLAY or "wayland-0"}"
|
"WAYLAND_DISPLAY=${config.environment.sessionVariables.WAYLAND_DISPLAY or "wayland-0"}"
|
||||||
"XDG_CURRENT_DESKTOP=Hyprland"
|
"XDG_CURRENT_DESKTOP=Hyprland"
|
||||||
];
|
];
|
||||||
};
|
|
||||||
wantedBy = [ "default.target" ];
|
|
||||||
};
|
};
|
||||||
|
wantedBy = [ "default.target" ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,8 @@ in
|
|||||||
environment.systemPackages = [ pkgs.swaynotificationcenter ];
|
environment.systemPackages = [ pkgs.swaynotificationcenter ];
|
||||||
|
|
||||||
home-manager.users.${username} = {
|
home-manager.users.${username} = {
|
||||||
services.swaync.enable = true;
|
# Do NOT enable services.swaync — it would claim the config files
|
||||||
|
# and conflict with our home.file entries below.
|
||||||
|
|
||||||
home.file = {
|
home.file = {
|
||||||
".config/swaync/config.json" = {
|
".config/swaync/config.json" = {
|
||||||
@@ -23,17 +24,17 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Autostart swaync as a systemd user service instead
|
# Autostart swaync as a systemd user service instead
|
||||||
systemd.user.services.swaync = {
|
systemd.user.services.swaync = {
|
||||||
description = "SwayNotificationCenter";
|
description = "SwayNotificationCenter";
|
||||||
after = [ "graphical-session.target" ];
|
after = [ "graphical-session.target" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = "${pkgs.swaynotificationcenter}/bin/swaync";
|
ExecStart = "${pkgs.swaynotificationcenter}/bin/swaync";
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
Environment = [
|
Environment = [
|
||||||
"WAYLAND_DISPLAY=${config.environment.sessionVariables.WAYLAND_DISPLAY or "wayland-0"}"
|
"WAYLAND_DISPLAY=${config.environment.sessionVariables.WAYLAND_DISPLAY or "wayland-0"}"
|
||||||
"XDG_CURRENT_DESKTOP=Hyprland"
|
"XDG_CURRENT_DESKTOP=Hyprland"
|
||||||
];
|
];
|
||||||
};
|
|
||||||
wantedBy = [ "default.target" ];
|
|
||||||
};
|
};
|
||||||
|
wantedBy = [ "default.target" ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user