Add in styling n shit
This commit is contained in:
+20
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user