Skip to content

Commit

Permalink
Nix/Home-Manager: clarify setting HM package to null on NixOS (#963)
Browse files Browse the repository at this point in the history
Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
  • Loading branch information
mitsuruu and fufexan authored Feb 4, 2025
1 parent 59d4de6 commit d88f677
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions pages/Nix/Hyprland on Home Manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,26 @@ Example configuration:
}
```

### Using the Home-Manager module with NixOS

If you want to use the Home Manager module while using the Hyprland package you've
defined in your NixOS module, you can now do so as long as you're running
[Home Manager `5dc1c2e40410f7dabef3ba8bf4fdb3145eae3ceb`](https://github.com/nix-community/home-manager/commit/5dc1c2e40410f7dabef3ba8bf4fdb3145eae3ceb)
or later by setting your `package` and `portalPackage` to `null`.

```nix {filename="home.nix"}
wayland.windowManager.hyprland = {
enable = true;
# set the Hyprland and XDPH packages to null to use the ones from the NixOS module
package = null;
portalPackage = null;
};
```

Make sure **not** to mix versions of Hyprland and XDPH.
If your NixOS config uses Hyprland from the flake, you should also use XDPH from the flake.
If you set the Home Manager Hyprland module package to `null`, you should also set the XDPH package to `null`.

### Programs don't work in systemd services, but do on the terminal

This problem is related to systemd not importing the environment by default. It
Expand Down

0 comments on commit d88f677

Please sign in to comment.