dotfiles/home/modules/gui/desktop/hyprland/default.nix

38 lines
1.1 KiB
Nix
Raw Normal View History

2025-01-09 02:09:02 -06:00
{
pkgs,
2025-01-11 18:53:08 -06:00
flake,
config,
2025-01-09 02:09:02 -06:00
...
2025-01-18 03:50:54 -06:00
}:
let
2025-01-10 04:17:54 -06:00
# hostname = config.networking.hostName;
# inherit (flake.config.machines.devices) desktop laptop;
2025-01-08 01:05:45 -06:00
configPath = ./config;
configImports = {
2025-01-09 02:09:02 -06:00
animations = import (configPath + /animations.nix);
bind = import (configPath + /bind.nix) { inherit flake config; };
2025-01-08 01:05:45 -06:00
bindm = import (configPath + /bindm.nix);
binds = import (configPath + /binds.nix);
2025-01-10 04:17:54 -06:00
# bindl =
# if hostname == laptop.name
# then import (configPath + /bindl.nix)
# else null;
2025-01-08 01:05:45 -06:00
decoration = import (configPath + /decoration.nix);
dwindle = import (configPath + /dwindle.nix);
exec-once = import (configPath + /exec-once.nix) { inherit flake; };
2025-01-31 01:49:36 -06:00
general = import (configPath + /general.nix) { inherit config flake; };
2025-01-08 01:05:45 -06:00
input = import (configPath + /input.nix);
misc = import (configPath + /misc.nix);
windowrulev2 = import (configPath + /windowrulev2.nix);
};
2025-01-18 03:50:54 -06:00
in
{
2025-01-08 01:05:45 -06:00
wayland.windowManager.hyprland = {
enable = true;
package = flake.inputs.hyprland.packages.${pkgs.system}.hyprland;
2025-01-08 01:05:45 -06:00
xwayland.enable = true;
systemd.enable = false;
settings = configImports;
};
}