Commit Graph

71 Commits

Author SHA1 Message Date
John Titor
04f223946c
nixos/hyprland: adds programs.hyprland.withUWSM option
Bool: controls whether Hyprland is configured with UWSM or not.

Upstream recommends using UWSM for better compatibility with systemd integration.
https://wiki.hyprland.org/Useful-Utilities/Systemd-start/
2024-11-15 14:32:29 +05:30
John Titor
48da44a481
nixos/hyprland: format with nixfmt rfc style 2024-11-14 23:47:26 +05:30
Aleksana
3b2ebbb33f
sway-unwrapped: 1.9 -> 1.10 (#351752) 2024-10-30 16:45:51 +08:00
Sefa Eyeoglu
eb382ecd52
nixos/sway: update default extraPackages
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2024-10-28 12:09:19 +01:00
Sefa Eyeoglu
7d43e37b44
nixos/uwsm: enable display manager by default
UWSM is not usable if wayland-sessions are not linked. So
`services.displayManager.enable` should be true if UWSM is used.

`services.graphical-desktop.enable` is implied by
`services.displayManager.enable`.

See nixos/modules/services/misc/graphical-desktop.nix

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2024-10-27 20:19:18 +01:00
Masum Reza
c87f82b6aa
nixos/sway: workaround idle inhibit not working in Firefox (#348792) 2024-10-24 19:48:30 +05:30
teutat3s
7e7a06994f
nixos/sway: workaround idle inhibit not working
in Firefox

Source:
https://www.reddit.com/r/swaywm/comments/1dqud2a/how_to_get_firefox_to_inhibit_idle_when_watching/
> Firefox supports the Wayaland inhibit protocol, but it attempts to use the DBus interfaces first. However, the gtk portal has an issue where it returns success even though the wlr portal/sway doesn't have an implementation for the inhibit method, see #465.
2024-10-23 18:34:47 +02:00
seth
942b12caba
nixos/niri: init module 2024-10-21 21:00:17 -04:00
Ali Rizvi
9020d82c70
nixos/wayland: add gtk portal by default 2024-09-30 09:54:19 -04:00
Sefa Eyeoglu
5fcc1337d2
nixos/waybar: enable systemdSupport for package
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2024-09-29 17:56:24 +05:30
r-vdp
a03d5e6f56
waybar: the systemd unit is coming from the package now 2024-09-10 14:12:45 +02:00
laalsaas
a89b885ae9 sway: integrate with systemd
see: https://github.com/swaywm/sway/wiki/Systemd-integration
2024-09-06 15:59:37 +02:00
John Titor
93343775bd
nixos/uwsm: init
[UWSM](https://github.com/Vladimir-csp/uwsm) is a session manager that wraps a wayland
window compositor with useful systemd units like `graphical-session-pre.target`,
`graphical-session.target`, `xdg-desktop-autostart.target`.

This is useful for Wayland Compositors that do not start
these units on these own.

Example for Hyprland:
```nix
programs.hyprland.enable = true;
programs.uwsm.enable = true;
programs.uwsm.waylandCompositors = {
  hyprland = {
    compositorPrettyName = "Hyprland";
    compositorComment = "Hyprland compositor managed by UWSM";
    compositorBinPath = "/run/current-system/sw/bin/Hyprland";
  };
};
```

Co-authored-by: Kai Norman Clasen <k.clasen@protonmail.com>
2024-08-21 16:09:54 +05:30
Sandro Jäckel
4f34325b2b
nixos/wayland-session: use graphical-desktop option and remove implicit defaults 2024-08-17 23:11:37 +02:00
éclairevoyant
28f1933286
nixos/wayland-session: enable xdg.icons 2024-08-06 00:09:46 -04:00
éclairevoyant
100d5e4c17
nixos/wayfire: enable xdg.icons 2024-08-06 00:09:44 -04:00
Masum Reza
15aa26cee0
Merge pull request #318815 from OPNA2608/init/miracle-wm
miracle-wm: init at 0.3.0
2024-07-30 14:56:47 +05:30
git@71rd.net
2483ea35cd modules/wayfire: nixfmt
Signed-off-by: git@71rd.net <git@71rd.net>
2024-07-29 16:13:55 +00:00
git@71rd.net
3f55cc361c nixos/wayfire: fix import file with settings required to start service
Wayfire does not start without further configuration, when
programs.wayfire.enable is the only wayland wm enabled. When sway or a
similar program is also enabled that program imports wayland-session.nix
hiding the problem.

This imports wayland-session.nix and adds the option xwayland.enable to
pass to the file
2024-07-29 14:24:26 +00:00
OPNA2608
ed443c58a8 nixos/miracle-wm: init 2024-07-29 15:09:17 +02:00
John Titor
ff0738b736
nixos/hyprland: set systemd environment PATH for versions < 0.41.2
Importing PATH into the systemd environment is done by default in
Hyprland v0.41.2+ (https://github.com/hyprwm/Hyprland/pull/6640)
We soft deprecate this option here for versions >= 0.41.2.
2024-06-26 23:04:27 +05:30
Masum Reza
be54c7d931
Merge pull request #320737 from Reputable2772/path-priority
nixos/hyprland: set path order for systemd user services
2024-06-23 19:49:48 +05:30
Reputable2722
dc423d5c69
nixos/hyprland: set path order for systemd user services
Set PATH order correctly for systemd user services (see NixOS/nixpkgs#320734

Signed-off-by: Reputable2722 <153411261+Reputable2772@users.noreply.github.com>
2024-06-18 15:15:51 +05:30
K900
98cef4c273 treewide: big opengl cleanup
- rename hardware.opengl to hardware.graphics
- remove hardware.opengl.driSupport, which does nothing
- remove hardware.opengl.setLdLibraryPath, which should never be done
- rename hardware.opengl.driSupport32Bit to hardware.graphics.enable32Bit
- lost of small docs / formatting cleanups
2024-06-16 14:11:33 +03:00
Leon
5b216845b6 nixos/hyprland: use lib.mkDefault for enableWlrPortal 2024-06-13 22:56:09 +02:00
Leon
9585e5d3aa nixos/hyprland: enable xdg.portal by default 2024-06-13 21:30:11 +02:00
John Titor
de77718887
nixos/wayland-session: cleanup
xwayland, wlr-portal ->
 enable-xwayland, enable-wlr-portal
2024-06-03 09:28:00 +05:30
John Titor
7b2a2824b3
nixos/wayland-session: force running xdg autostart for WM-only sessions 2024-06-01 22:30:19 +05:30
John Titor
98f9f9951a
nixos/hyprland: add fufexan as maintainer
Per https://github.com/NixOS/nixpkgs/pull/315827#issuecomment-2139073465
2024-05-30 14:25:36 +05:30
John Titor
0b0b7cefcc
nixos/hyprland: disable wlr-portal for Hyprland
This commit:
- Adds wlr-portal override of wayland-session module (enabled by default)
- Disable it for hyprland module
2024-05-30 13:30:41 +05:30
John Titor
353aa12446
nixos/hypridle: init 2024-05-27 17:41:36 +05:30
John Titor
07a0b79ed1
nixos/hyprlock: init module 2024-05-27 17:32:22 +05:30
Maëlys Bras de fer
95674de399 nixos/{river,hyprland}: override package using apply 2024-05-22 20:01:05 +02:00
Maëlys Bras de fer
bcbeccfa7d nixos/{sway,river,hyprland}: cleanup 2024-05-22 19:45:46 +02:00
Maëlys Bras de fer
a4160dfe88 nixos/hyprland: use generic wayland-session module 2024-05-22 19:43:21 +02:00
Maëlys Bras de fer
cf159c437d nixos/{sway,river}: make XWayland support optional 2024-05-22 19:43:19 +02:00
Acid Bong
49f6869f71
treewide: remove file-wide with lib; in nixos/modules/programs 2024-05-12 10:11:06 +03:00
éclairevoyant
23bde0b9e3
Revert "nixos/hyprland: Set environment variables for Hyprland to work better"
This reverts commit d18a587b78.
2024-05-03 22:38:57 -04:00
John Titor
d18a587b78
nixos/hyprland: Set environment variables for Hyprland to work better
XDG vars set to Hyprland
GTK and QT backend set to wayland (preferred), with x11 as fallback
Java AWT fix for tiling window managers
2024-04-27 11:44:44 +05:30
rewine
304c66ce05
Merge pull request #303174 from JohnRTitor/hyprland-module
nixos/hyprland: add the correct user profile bin directory to systemd PATH
2024-04-14 02:20:21 +08:00
stuebinm
6afb255d97 nixos: remove all uses of lib.mdDoc
these changes were generated with nixq 0.0.2, by running

  nixq ">> lib.mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix
  nixq ">> mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix
  nixq ">> Inherit >> mdDoc[remove]" --batchmode nixos/**.nix

two mentions of the mdDoc function remain in nixos/, both of which
are inside of comments.

Since lib.mdDoc is already defined as just id, this commit is a no-op as
far as Nix (and the built manual) is concerned.
2024-04-13 10:07:35 -07:00
John Titor
1198dc84f8
nixos/hyprland: systemd.setPath - fix user profile bin directory
%u modifier can be used to get the username in systemd config
$USER var expansion does not work without manually importing $USER
Should fix opening links in home manager/user profile programs
2024-04-11 09:53:43 +05:30
Sandro
4cc6ce454d
Merge pull request #291913 from SuperSandro2000/sddm-wayland-only 2024-04-09 14:31:12 +02:00
Bjørn Forsman
a29010fe79 nixos: improve many 'enable' descriptions 2024-04-09 07:10:17 +02:00
Sandro Jäckel
476b8c276e
treewide: rename renamed sddm/displayManager settings 2024-04-08 21:56:38 +02:00
John Titor
dfa44e80da
nixos/hyprland: Add possible bin directory paths, ie, user packages bin
If user chooses, they can `exec-once=dbus-update-activation-environment --systemd --all` in hyprland.conf
To import all path variables from the system's environment to systemd's environment

Also set option example to false
2024-04-06 02:29:13 +05:30
John Titor
10d1589126
nixos/hyprland: removed references to mdDoc since it is the default 2024-04-06 02:29:12 +05:30
John Titor
888accda88
nixos/hyprland: add systemd.setPath.enable option
This commit adds systemd.setPath.enable option to hyprland module
which sets the systemd path to include the current system's bin
This is needed in Hyprland only setups, where opening links in applications like VS code do not work.
2024-04-06 02:29:07 +05:30
Franz Pletz
764d15f59f
pinentry: remove multiple outputs package
fixes #133156 #124753
2024-03-02 17:16:53 +01:00
Arnout Engelen
36e51d7cbf
sway: 1.8.1 -> 1.9.0
Co-authored-by: Phileas Lebada <norpol@users.noreply.github.com>
Co-authored-by: éclairevoyant <848000+eclairevoyant@users.noreply.github.com>
2024-02-29 11:37:30 +01:00