modules: remove usrEnv
This commit is contained in:
parent
e7904182e7
commit
07f42737d1
12 changed files with 51 additions and 244 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue