lock update, rm dead code and some uwsm

This commit is contained in:
2025-03-04 19:33:34 +01:00
parent 3b7515d4e7
commit f1475df6a9
4 changed files with 80 additions and 149 deletions

View File

@@ -33,6 +33,7 @@ in {
programs.hyprland = {
enable = true;
withUWSM = true;
};
environment.variables.NIXOS_OZONE_WL = "1";
};

View File

@@ -1,12 +1,10 @@
{
pkgs,
config,
lib,
...
}: let
inherit (lib) mkIf mkEnableOption mkMerge mkOption types;
inherit (lib) mkIf mkEnableOption mkOption types;
cfg = config.nixos.services.greetd;
host = config.networking.hostName;
in {
options = {
nixos.services.greetd = {
@@ -37,39 +35,5 @@ in {
initial_session = session;
};
};
programs.uwsm = {
enable = true;
waylandCompositors.hyprland = {
binPath = "/run/current-system/sw/bin/Hyprland";
prettyName = "Hyprland";
comment = "Hyprland managed by UWSM";
};
};
# (mkIf (host == "cnix" || host == "cnixpad") {
# programs.uwsm = {
# enable = true;
# waylandCompositors.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;
# ]);
};
}