modules: remove usrEnv

This commit is contained in:
Charlie Root 2025-03-26 19:37:50 +01:00
commit 07f42737d1
Signed by: faukah
SSH key fingerprint: SHA256:Uj2AXqvtdCA4hn5Hq0ZonhIAyUqI1q4w2sMG3Z1TH7E
12 changed files with 51 additions and 244 deletions

View file

@ -3,7 +3,7 @@
pkgs,
...
}: let
cfg = config.modules.usrEnv.desktops.hyprland;
cfg = config.modules.desktops.hyprland;
inherit (builtins) map genList toString;
in {
programs.hyprland.settings = {

View file

@ -4,9 +4,11 @@
lib,
...
}: let
cfg = config.modules.usrEnv.desktops.hyprland;
cfg = config.modules.desktops.hyprland;
# inherit (inputs.hyprsplit.packages.${pkgs.system}) hyprsplit;
inherit (lib) mkIf mkDefault;
inherit (lib.modules) mkIf mkDefault;
inherit (lib.options) mkOption;
inherit (lib.types) bool enum package;
in {
imports = [
./binds.nix
@ -19,6 +21,29 @@ in {
# we disable the default hyprland module
disabledModules = ["programs/hyprland.nix"];
options.modules.desktops.hyprland = {
enable = mkOption {
type = bool;
default = false;
description = ''
Whether to enable Hyprland wayland compositor.
'';
};
package = mkOption {
type = package;
default = pkgs.hyprland;
description = ''
The Hyprland package to be used.
'';
};
portalPackage = mkOption {
type = package;
default = pkgs.xdg-desktop-portal-hyprland;
description = "The hyprland portal package";
};
};
config = mkIf cfg.enable {
programs.hyprland = {
enable = true;