diff --git a/configs/programs/hyprland.nix b/configs/programs/hyprland.nix index 6892349..26e222b 100644 --- a/configs/programs/hyprland.nix +++ b/configs/programs/hyprland.nix @@ -1,19 +1,5 @@ { pkgs, ... }: { - environment.loginShellInit = # sh - '' - if [[ -z "$SSH_CLIENT" && -z "$SSH_CONNECTION" ]]; then - if uwsm check may-start; then - exec uwsm start hyprland-uwsm.desktop - fi - fi - ''; - - programs.hyprland = { - enable = true; - withUWSM = true; - }; - home-manager.users.rafiq = { xdg.configFile."uwsm/env".text = # sh '' diff --git a/modules/nixos/de.nix b/modules/nixos/de.nix index 20c0b7f..a10a278 100644 --- a/modules/nixos/de.nix +++ b/modules/nixos/de.nix @@ -54,6 +54,22 @@ in networking.firewall.allowedTCPPorts = [ 5353 ]; networking.firewall.allowedUDPPorts = [ 5353 ]; }) + (lib.mkIf (cfg.type == "hyprland") { + environment.loginShellInit = # sh + '' + if [[ -z "$SSH_CLIENT" && -z "$SSH_CONNECTION" ]]; then + if uwsm check may-start; then + exec uwsm start hyprland-uwsm.desktop + fi + fi + ''; + + programs.hyprland = { + enable = true; + withUWSM = true; + }; + + }) ] ); }