hyprland uwsm hmhmhm
This commit is contained in:
@@ -44,7 +44,5 @@ in {
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.user.targets.tray.Unit.Requires = lib.mkForce ["graphical-session.target"];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,13 +11,16 @@ in {
|
|||||||
home.programs.waybar.enable = mkEnableOption "Enables waybar";
|
home.programs.waybar.enable = mkEnableOption "Enables waybar";
|
||||||
};
|
};
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
systemd.user.services.waybar = {
|
|
||||||
Unit.StartLimitBurst = 30;
|
|
||||||
};
|
|
||||||
programs.waybar = {
|
programs.waybar = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.waybar;
|
package = pkgs.waybar;
|
||||||
systemd.enable = true;
|
systemd.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.user.services.waybar = {
|
||||||
|
Unit.After = ["graphical-session.target"];
|
||||||
|
Service.Slice = ["app-graphical.slice"];
|
||||||
|
Unit.StartLimitBurst = 30;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ in {
|
|||||||
};
|
};
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
security.pam.services.hyprlock.text = "auth include login";
|
security.pam.services.hyprlock.text = "auth include login";
|
||||||
programs.hyprland.withUWSM = {
|
programs.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = inputs.hyprland.packages.${pkgs.system}.default;
|
package = inputs.hyprland.packages.${pkgs.system}.default;
|
||||||
portalPackage = inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland;
|
portalPackage = inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland;
|
||||||
|
|||||||
@@ -23,8 +23,7 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable (mkMerge [
|
config = mkIf cfg.enable {
|
||||||
{
|
|
||||||
services.greetd = let
|
services.greetd = let
|
||||||
session = {
|
session = {
|
||||||
command = "${lib.getExe config.programs.uwsm.package} start hyprland-uwsm.desktop";
|
command = "${lib.getExe config.programs.uwsm.package} start hyprland-uwsm.desktop";
|
||||||
@@ -38,30 +37,39 @@ in {
|
|||||||
initial_session = session;
|
initial_session = session;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
|
||||||
|
|
||||||
(mkIf (host == "cnix" || host == "cnixpad") {
|
|
||||||
programs.uwsm = {
|
programs.uwsm = {
|
||||||
enable = true;
|
enable = true;
|
||||||
waylandCompositors.hyprland = {
|
waylandCompositors.hyprland = {
|
||||||
binPath = "/etc/profiles/per-user/cnst/bin/Hyprland";
|
binPath = "/run/current-system/sw/bin/Hyprland";
|
||||||
prettyName = "Hyprland";
|
prettyName = "Hyprland";
|
||||||
comment = "Hyprland managed by UWSM";
|
comment = "Hyprland managed by UWSM";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
})
|
|
||||||
|
|
||||||
(mkIf (host == "toothpc") {
|
# (mkIf (host == "cnix" || host == "cnixpad") {
|
||||||
programs.uwsm = {
|
# programs.uwsm = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
waylandCompositors.hyprland = {
|
# waylandCompositors.hyprland = {
|
||||||
binPath = "/etc/profiles/per-user/toothpick/bin/Hyprland";
|
# binPath = "/etc/profiles/per-user/cnst/bin/Hyprland";
|
||||||
prettyName = "Hyprland";
|
# prettyName = "Hyprland";
|
||||||
comment = "Hyprland managed by UWSM";
|
# comment = "Hyprland managed by UWSM";
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
# })
|
||||||
|
|
||||||
|
# (mkIf (host == "toothpc") {
|
||||||
|
# programs.uwsm = {
|
||||||
|
# enable = true;
|
||||||
|
# waylandCompositors.hyprland = {
|
||||||
|
# binPath = "/etc/profiles/per-user/toothpick/bin/Hyprland";
|
||||||
|
# prettyName = "Hyprland";
|
||||||
|
# comment = "Hyprland managed by UWSM";
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
# })
|
||||||
|
# # Apply GnomeKeyring PAM Service based on user configuration
|
||||||
|
# # security.pam.services.greetd.enableGnomeKeyring = cfg.gnomeKeyring.enable;
|
||||||
|
# ]);
|
||||||
};
|
};
|
||||||
};
|
|
||||||
})
|
|
||||||
# Apply GnomeKeyring PAM Service based on user configuration
|
|
||||||
# security.pam.services.greetd.enableGnomeKeyring = cfg.gnomeKeyring.enable;
|
|
||||||
]);
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user