dotfiles/modules/home/gui/desktop/hypr/land/default.nix

43 lines
1.2 KiB
Nix
Raw Normal View History

2025-01-09 02:09:02 -06:00
{
2025-01-11 18:53:08 -06:00
flake,
config,
2025-02-04 14:05:09 -06:00
pkgs,
2025-01-09 02:09:02 -06:00
...
2025-01-18 03:50:54 -06:00
}:
let
2025-02-04 14:05:09 -06:00
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-02-04 14:05:09 -06:00
# bindl = import (configPath + /bindl.nix);
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-02-07 16:01:11 -06:00
xwayland = import (configPath + /xwayland.nix);
2025-01-08 01:05:45 -06:00
};
2025-01-18 03:50:54 -06:00
in
{
2025-01-08 01:05:45 -06:00
wayland.windowManager.hyprland = {
enable = true;
2025-02-04 14:05:09 -06:00
package = null;
portalPackage = null;
2025-01-08 01:05:45 -06:00
xwayland.enable = true;
2025-02-03 02:00:27 -06:00
systemd = {
enable = true;
enableXdgAutostart = true;
extraCommands = [
"systemctl --user stop hyprland-session.target"
"systemctl --user start hyprland-session.target"
];
};
2025-01-08 01:05:45 -06:00
settings = configImports;
};
}