greetd uwsm changes
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption mkMerge mkOption types;
|
||||
cfg = config.nixos.services.greetd;
|
||||
host = config.networking.hostName;
|
||||
in {
|
||||
options = {
|
||||
nixos.services.greetd = {
|
||||
@@ -22,7 +23,8 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
config = mkIf cfg.enable (mkMerge [
|
||||
{
|
||||
services.greetd = let
|
||||
session = {
|
||||
command = "${lib.getExe config.programs.uwsm.package} start hyprland-uwsm.desktop";
|
||||
@@ -36,17 +38,30 @@ in {
|
||||
initial_session = session;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
(mkIf (host == "cnix") {
|
||||
programs.uwsm = {
|
||||
enable = true;
|
||||
waylandCompositors.hyprland = {
|
||||
binPath = "/run/current-system/sw/bin/Hyprland";
|
||||
binPath = "/etc/profiles/per-user/cnst/bin/Hyprland";
|
||||
prettyName = "Hyprland";
|
||||
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;
|
||||
};
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user