From cde6eb2fa7deecde0895e4571ab83f8781341b76 Mon Sep 17 00:00:00 2001 From: Jacob Babor Date: Mon, 18 May 2026 14:56:47 -0500 Subject: [PATCH] Add in styling n shit --- desktop/base.nix | 5 +++++ desktop/hyprland.nix | 21 ++++++++++++++++++++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/desktop/base.nix b/desktop/base.nix index 7825a08..01d64bb 100644 --- a/desktop/base.nix +++ b/desktop/base.nix @@ -19,6 +19,11 @@ platformTheme = "kde"; style = "breeze"; }; + environment.pathsToLink = [ + "/share/color-schemes" + "/share/kstyle" + "/share/plasma" + ]; environment.etc."xdg/kdeglobals".text = lib.generators.toINI { } { General = { diff --git a/desktop/hyprland.nix b/desktop/hyprland.nix index b1f0ed9..b6dd17b 100644 --- a/desktop/hyprland.nix +++ b/desktop/hyprland.nix @@ -3,6 +3,24 @@ # { config, lib, pkgs, ... }: +let + hyprlandUwsmSession = pkgs.writeTextFile { + name = "hyprland-nixos-uwsm"; + destination = "/share/wayland-sessions/hyprland-nixos-uwsm.desktop"; + text = '' + [Desktop Entry] + Name=Hyprland (NixOS UWSM) + Comment=Hyprland managed by UWSM with the NixOS session environment + Exec=${pkgs.writeShellScript "start-hyprland-nixos-uwsm" '' + . /etc/set-environment + exec ${lib.getExe pkgs.uwsm} start -F -- /run/current-system/sw/bin/Hyprland + ''} + Type=Application + DesktopNames=Hyprland + ''; + passthru.providedSessions = [ "hyprland-nixos-uwsm" ]; + }; +in { imports = [ ./base.nix @@ -11,11 +29,12 @@ ./packages.nix ./sddm.nix ]; - services.displayManager.defaultSession = "hyprland-uwsm"; + services.displayManager.defaultSession = "hyprland-nixos-uwsm"; # Hyprland as the star of the show programs.hyprland.enable = true; programs.hyprland.withUWSM = true; + services.displayManager.sessionPackages = [ hyprlandUwsmSession ]; # XDG portal xdg.portal.enable = true;