restructure
This commit is contained in:
35
modules/features/hyprland.nix
Normal file
35
modules/features/hyprland.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ inputs, ... }: {
|
||||
|
||||
flake.nixosModules.default = { config, lib, pkgs, ... }: {
|
||||
|
||||
options.sysconfig.programs.hyprland.enable = lib.options.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
};
|
||||
|
||||
config = lib.mkIf config.sysconfig.programs.hyprland.enable {
|
||||
|
||||
sysconfig.services.sddm.enable = lib.mkDefault true;
|
||||
|
||||
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
||||
|
||||
programs.hyprland = let
|
||||
system = pkgs.stdenv.hostPlatform.system;
|
||||
#pkgs-us = import inputs.nixpkgs-us { inherit system; };
|
||||
in {
|
||||
enable = true;
|
||||
|
||||
withUWSM = false;
|
||||
|
||||
xwayland.enable = true;
|
||||
|
||||
systemd.setPath.enable = true;
|
||||
|
||||
package = inputs.hyprland.packages.${system}.hyprland;
|
||||
|
||||
portalPackage = inputs.hyprland.packages.${system}.xdg-desktop-portal-hyprland;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user