2026-01-20 13:34:45 -05:00
|
|
|
{ config, pkgs, lib, makeEnable, inputs, ... }:
|
2026-01-20 13:21:00 -05:00
|
|
|
makeEnable config "myModules.hyprland" true {
|
|
|
|
|
programs.hyprland = {
|
|
|
|
|
enable = true;
|
2026-01-20 13:34:45 -05:00
|
|
|
# Use Hyprland from the flake for proper plugin compatibility
|
2026-01-31 00:15:33 -08:00
|
|
|
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
2026-01-20 13:21:00 -05:00
|
|
|
};
|
|
|
|
|
|
2026-02-03 20:30:39 -08:00
|
|
|
home-manager.sharedModules = [
|
|
|
|
|
{
|
2026-02-03 22:01:14 -08:00
|
|
|
xdg.configFile."waybar" = {
|
|
|
|
|
source = ../dotfiles/config/waybar;
|
2026-02-03 20:30:39 -08:00
|
|
|
recursive = true;
|
|
|
|
|
force = true;
|
|
|
|
|
};
|
|
|
|
|
|
2026-02-03 22:01:14 -08:00
|
|
|
programs.waybar.enable = true;
|
2026-02-03 20:30:39 -08:00
|
|
|
|
2026-02-03 22:01:14 -08:00
|
|
|
systemd.user.targets.hyprland-session = {
|
|
|
|
|
Unit = {
|
|
|
|
|
Description = "Hyprland session";
|
|
|
|
|
};
|
|
|
|
|
};
|
2026-02-03 20:30:39 -08:00
|
|
|
|
2026-02-03 22:01:14 -08:00
|
|
|
systemd.user.services.waybar = {
|
|
|
|
|
Unit = {
|
|
|
|
|
Description = "Waybar";
|
|
|
|
|
PartOf = [ "hyprland-session.target" ];
|
|
|
|
|
After = [ "hyprland-session.target" ];
|
|
|
|
|
};
|
|
|
|
|
Service = {
|
|
|
|
|
ExecStart = "${pkgs.waybar}/bin/waybar";
|
|
|
|
|
Restart = "on-failure";
|
|
|
|
|
RestartSec = 1;
|
|
|
|
|
};
|
|
|
|
|
Install = {
|
|
|
|
|
WantedBy = [ "hyprland-session.target" ];
|
|
|
|
|
};
|
2026-02-03 20:30:39 -08:00
|
|
|
};
|
2026-02-03 22:01:14 -08:00
|
|
|
|
|
|
|
|
programs.hyprpanel.enable = false;
|
2026-02-03 20:30:39 -08:00
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
|
2026-01-20 13:21:00 -05:00
|
|
|
# Hyprland-specific packages
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
# Hyprland utilities
|
|
|
|
|
hyprpaper # Wallpaper
|
|
|
|
|
hypridle # Idle daemon
|
|
|
|
|
hyprlock # Screen locker
|
|
|
|
|
hyprcursor # Cursor themes
|
|
|
|
|
wl-clipboard # Clipboard for Wayland
|
|
|
|
|
cliphist # Clipboard history
|
|
|
|
|
grim # Screenshot utility
|
|
|
|
|
slurp # Region selection
|
|
|
|
|
swappy # Screenshot annotation
|
|
|
|
|
wlsunset # Night light / blue light filter
|
|
|
|
|
|
2026-01-20 13:34:45 -05:00
|
|
|
# hy3 plugin from flake (properly built against matching Hyprland)
|
2026-01-31 00:15:33 -08:00
|
|
|
inputs.hy3.packages.${pkgs.stdenv.hostPlatform.system}.hy3
|
2026-01-20 13:34:45 -05:00
|
|
|
|
2026-02-03 22:01:14 -08:00
|
|
|
# Hyprspace plugin from flake (workspace overview)
|
|
|
|
|
inputs.hyprspace.packages.${pkgs.stdenv.hostPlatform.system}.Hyprspace
|
|
|
|
|
|
2026-01-20 13:34:45 -05:00
|
|
|
# For scripts
|
|
|
|
|
jq
|
2026-01-20 13:21:00 -05:00
|
|
|
];
|
|
|
|
|
}
|