diff options
| author | Jakub Stachurski <j.stachurski@student.utwente.nl> | 2025-03-29 23:09:38 +0100 |
|---|---|---|
| committer | Jakub Stachurski <j.stachurski@student.utwente.nl> | 2025-03-29 23:09:38 +0100 |
| commit | 2e37bf1533ace5b2d4d50196300133d9e72d2952 (patch) | |
| tree | 0c06f4f03599933bb3d0e31620203287ca67c7c0 /nixos/desktop/hyprland.nix | |
| parent | 2418424adabca0a1616cca4920221cd67149b65a (diff) | |
flakes update feat. xfce
Diffstat (limited to '')
| -rw-r--r-- | nixos/desktop/hyprland.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/nixos/desktop/hyprland.nix b/nixos/desktop/hyprland.nix new file mode 100644 index 0000000..687f2eb --- /dev/null +++ b/nixos/desktop/hyprland.nix @@ -0,0 +1,44 @@ +{pkgs, ...}: { + environment.systemPackages = with pkgs; [ + hyprland + hyprgui + hyprshot + hyprkeys + hypridle + hyprpaper + hyprpicker + hyprnotify + hyprcursor + waybar + waybar-mpris + ]; + + + services.xserver.exportConfiguration = true; # This makes it easy to search for a valid keymap + # Enable KDE6 env in case Hyprland gets borked. + # services.desktopManager.plasma6.enable = true; + programs.hyprland.enable = true; + programs.hyprland.withUWSM = true; + programs.uwsm = { + enable = true; + waylandCompositors ={ + hyprland = { + prettyName = "Hyprland"; + comment = "Hyprland compositor managed by UWSM"; + binPath = "/run/current-system/sw/bin/Hyprland"; + }; + }; + }; + + xdg.portal = { + enable = true; + config = { + common = { + default = [ + "hyprland" + "gtk" + ]; + }; + }; + }; +} |
