forked from Shinonome/dots-hyprland
45 lines
1010 B
Nix
45 lines
1010 B
Nix
{
|
|
config,
|
|
lib,
|
|
inputs,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
inherit
|
|
(lib)
|
|
mkIf
|
|
mkMerge
|
|
mkDefault
|
|
mkOption
|
|
types
|
|
;
|
|
cfg = config.illogical-impulse.desktop;
|
|
in {
|
|
options = {
|
|
illogical-impulse.desktop = {
|
|
enable = mkOption {
|
|
type = types.bool;
|
|
default = true;
|
|
description = ''
|
|
Enables Hyprland and quickshell.
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
config = mkIf cfg.enable {
|
|
programs.hyprland = {
|
|
enable = true;
|
|
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
|
portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
|
|
};
|
|
environment.systemPackages = [
|
|
inputs.quickshell.packages.${pkgs.system}.default
|
|
inputs.matugen.packages.${pkgs.system}.default
|
|
inputs.self.legacyPackages.${pkgs.system}.iiOneUI4Icons
|
|
];
|
|
environment.etc."skel/.config/quickshell" = {
|
|
source = "../../../.config/quickshell";
|
|
};
|
|
};
|
|
}
|