Add in styling n shit

This commit is contained in:
2026-05-18 14:56:47 -05:00
parent f974c85b5e
commit cde6eb2fa7
2 changed files with 25 additions and 1 deletions
+20 -1
View File
@@ -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;