39 Commits

Author SHA1 Message Date
Amadej Kastelic
b496e2c718
nix/module: load plugins using exec-once (#9836) 2025-04-03 10:43:06 +03:00
Mihai Fufezan
905ca39bc9
nix/module: toHyprconf -> toHyprlang (#9221)
* nix/module: toHyprconf -> toHyprlang

Updated generator that will end up living in Nixpkgs' `lib/generators`.

* nix/module: use xdph package directly

The downstream module already applies hyprland's
finalPackage to the portalPackage.

* new lib

* lib: add flattenAttrs, remove category processing

Flattening attributes means we no longer need to process categories
separately. For all intents and purposes, they do not exist.

Simplify the codebase once again, while introducing an easy to grasp
recursive function.

Add a bit of documentation for toHyprlang, though I doubt it's clear
enough even now. Still needs proper NixDoc.

* lib: add proper NixDoc

* nix/lib: inherit from lib
2025-03-02 15:41:49 +02:00
Charlie Root
f56153a9c1
nix/module.nix: expand nixos module for configuring hyprland
Expand the nixos module to be able to configure hyprland, just like the
current home-manager module does.
2025-01-18 12:48:38 +02:00
Mihai Fufezan
f7cde9c92c
Nix: remove duplicate options from modules (#4012) 2023-12-14 20:02:20 +02:00
Vaxry
cd96ceecc5
build: remove nv patches (#3957) 2023-11-26 02:58:57 +00:00
Mihai Fufezan
f6473aa3ad flake.lock: update nixpkgs and xdph
- nix/module: update xdph override
- nix/overlays: remove hyprland-share-picker (now built directly inside xdph)
2023-09-14 12:03:48 +03:00
Tristan Daniël Maat
4d14edd8a5 nix module: Fix attempted workaround for option name change
`system.stateVersion` is about *system state*, i.e., stuff that was
created by old software versions on users' machines, like SQL
databases that have moved to a different directory or such.

It will not help figure out whether an option has been renamed.
2023-08-23 13:32:06 +03:00
Mihai Fufezan
78fa8adadc
Nix/module: fix system when config.allowAlias is false 2023-08-16 13:39:20 +03:00
Mihai Fufezan
a0cf890292
Nix/module: final fix 2023-08-14 11:53:58 +03:00
Mihai Fufezan
9ba6eab8db
ugh 2023-08-14 11:37:08 +03:00
Mihai Fufezan
9180fb08e2
Nix/module: fix package option 2023-08-14 11:12:57 +03:00
Mihai Fufezan
314f88de53
Nix: disable nixpkgs module in ours 2023-08-14 11:03:01 +03:00
Mihai Fufezan
2650224c1f Nix: remove hidpi from modules 2023-08-14 10:39:57 +03:00
Mihai Fufezan
bf0d8ab4a3
NixOS module: check system version for fonts 2023-07-29 23:05:35 +03:00
Okirshen
c36c30c17b Renamed deprecated value in nix config
See 83793ca898 for more info.
2023-07-27 11:36:35 +03:00
Mihai Fufezan
16d05a5c8b nix/*module: use mdDoc for documentation
Simplify and add more info to the docs.
2023-04-10 15:51:01 +03:00
Mihai Fufezan
cf51a31807 Nix: disable HiDPI for default package
NOTE: the package `hyprland-no-hidpi` was removed, and instead
`hyprland-hidpi` exists now.
2023-03-22 19:10:46 +02:00
pranaless
eb9fa8460f
fix typo (#1420) 2023-01-24 19:20:50 +02:00
Cole Mickens
31ab2349f9
nix: react to another stdenv change (#1399) 2023-01-18 10:37:56 +02:00
Cole Mickens
0b26b1eed6 s/pkgs.system/pkgs.hostPlatform.system/g 2023-01-03 13:56:23 +02:00
Mihai Fufezan
f59c9a805e
nix/module: add nvidiaPatches option
Also fixes wrong package passing.
2022-12-17 21:41:22 +02:00
Mihai Fufezan
11a1a6c271
nix: add xdph to flake and enable it in the nixos module 2022-12-09 16:25:57 +02:00
Mihai Fufezan
9fc143cf3d
Revert "nix: add cachix to nixos module"
This reverts commit 5b7fec481bcd795a518667eb19864d663b1a47d6.
Will clarify better how to enable Cachix, in the wiki.
2022-12-09 13:36:23 +02:00
Mihai Fufezan
5b7fec481b
nix: add cachix to nixos module 2022-12-07 19:18:15 +02:00
Mihai Fufezan
f71f04db9e nix: add xdph to nixos module 2022-12-05 03:13:31 +02:00
Narice
c03e4c36b0
Setting wayland environment variables at startup (#1045)
* Nix modules: removed GDK_BACKEND env variable

* setting wayland environment variables at startup

setting XDG_BACKEND and _JAVA_AWT_WM_NONREPARENTING in main.cpp
removed these variables from nix modules recommended environemnt
removed XCURSOR_SIZE from nix modules as it is already set

* Making _JAVA_AWT_WM_NONREPARENTING not overwritten
2022-11-19 19:37:16 +00:00
Narice
7e7cb40909 Nix modules: fix environment variables 2022-10-14 16:19:14 +03:00
Mihai Fufezan
9370c7aa8a Nix modules: add recommendedEnvironment option 2022-09-09 17:01:24 +03:00
Mars
cf5426f2d8 Fix typo in module.nix 2022-09-07 11:48:08 +03:00
Mihai Fufezan
1d631c8a23 Nix modules: add common environment variables 2022-09-07 01:24:09 +03:00
Mihai Fufezan
eee0cad4d0
Nix modules: fix imports 2022-09-03 02:20:20 +03:00
Mihai Fufezan
59879e0bd1
Nix module: make package nullable part 3 2022-07-30 18:19:27 +03:00
Mihai Fufezan
132b5ba5b6
Nix module: make package nullable part 2 2022-07-30 18:14:46 +03:00
Mihai Fufezan
3c544e1c31
Nix module: make package nullable 2022-07-30 18:11:46 +03:00
Mihai Fufezan
66680a1149
Nix: fix failing module 2022-07-29 18:39:10 +03:00
reptee
fd999100f0
Remove extra packages in nix module (#343)
Co-authored-by: Mihai Fufezan <fufexan@pm.me>
Co-authored-by: Mihai Fufezan <fufexan@protonmail.com>
2022-07-29 14:35:38 +03:00
xDarksome
e0f0ed9af4
Don't use pkgs.hyprland package in the nix module (#299)
Users who use the overlay: see wiki for fixing your config if it broke.
2022-07-03 15:28:10 +03:00
Fernando Ayats
4efd913de8 nix: use the overlay in the module 2022-06-20 13:04:40 +02:00
Mihai Fufezan
9447fcd603
fix Nix build and add updater
- move unnecessary toplevel files to nix/
- added patch that ignores the submodule (revert)
- add update script run by a workflow
2022-06-01 23:52:08 +03:00