Commit graph

81 commits

Author SHA1 Message Date
r-vdp 5737bd989d
waybar: make the systemd target that pulls in waybar configurable
This is useful for instance when you only want one WM to pull in waybar,
and not all of them.
2025-04-18 10:38:53 +02:00
Silvan Mosberger 374e6bcc40 treewide: Format all Nix files
Format all Nix files using the officially approved formatter,
making the CI check introduced in the previous commit succeed:

  nix-build ci -A fmt.check

This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153)
of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166).

This commit will lead to merge conflicts for a number of PRs,
up to an estimated ~1100 (~33%) among the PRs with activity in the past 2
months, but that should be lower than what it would be without the previous
[partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537).

Merge conflicts caused by this commit can now automatically be resolved while rebasing using the
[auto-rebase script](8616af08d9/maintainers/scripts/auto-rebase).

If you run into any problems regarding any of this, please reach out to the
[formatting team](https://nixos.org/community/teams/formatting/) by
pinging @NixOS/nix-formatting.
2025-04-01 20:10:43 +02:00
André Silva 09879a452b
nixos/hyprland: fix call to wayland-session.nix 2025-03-31 11:15:31 +01:00
Seth Flynn 4df2726a5c
nixos/wayland-session: fix conflicts between users 2025-03-30 15:37:15 -04:00
teutat3s 40e7344388 nixos/sway: restore list type of xdg.portal.config.sway.default
This fixes a regression introduced in #348792, where the option type was
changed from list to string. This commit reverts the type back to list.

Fixes #352188
Closes #352193
2025-02-10 17:15:56 +05:30
John Titor ad9367061b treewide: adopt hypr ecosytem by Hyprland team
Preserved maintainer entries that are not in Hyprland teams.

Removed @wozeparrot as per https://github.com/NixOS/nixpkgs/issues/377569#issuecomment-2619445027

Signed-off-by: John Titor <50095635+JohnRTitor@users.noreply.github.com>
2025-01-28 23:03:51 +05:30
Anderson Torres bc80114502 various: remove AndersonTorres from modules maintainership 2025-01-22 21:47:09 -03:00
FliegendeWurst 03b5879e7f nixos/sway: fix Nvidia warning 2025-01-11 08:51:07 +01:00
FliegendeWurst 1e4221b0e2 nixos/sway: warn on too old Nvidia 2025-01-09 08:59:01 +01:00
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
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