54 lines
999 B
Nix
54 lines
999 B
Nix
{
|
|
inputs,
|
|
outputs,
|
|
lib,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
inherit (lib) mkEnableOption mkIf mkOption types;
|
|
cfg = config.horseman.wm.hyprland;
|
|
in {
|
|
options = {
|
|
horseman.wm.hyprland = {
|
|
enable = mkEnableOption "HyprLand";
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
programs.hyprland = {
|
|
enable = true;
|
|
xwayland.enable = true;
|
|
};
|
|
|
|
security.polkit.enable = true;
|
|
environment.systemPackages = with pkgs; [
|
|
brightnessctl
|
|
eww
|
|
fortune
|
|
hypridle
|
|
hyprlock
|
|
hyprpaper
|
|
hyprpolkitagent
|
|
hyprshot
|
|
jq
|
|
networkmanagerapplet
|
|
playerctl
|
|
pulsemixer
|
|
python312Packages.gpustat
|
|
swaynotificationcenter
|
|
wirelesstools
|
|
wofi
|
|
xdg-desktop-portal-hyprland
|
|
];
|
|
|
|
services.logind.extraConfig = ''
|
|
HandlePowerKey=ignore
|
|
'';
|
|
|
|
system.activationScripts.script.text = ''
|
|
cd /home/horseman;
|
|
cp -r nix-config/modules/wm/hyprland/config/* .config;
|
|
'';
|
|
};
|
|
}
|