config.nix/modules/window_manager/window_manager.nix
2025-12-18 11:47:21 +01:00

47 lines
844 B
Nix

{
config,
lib,
pkgs,
...
}:
let
enable_hyprland =
if config.networking.hostName == "marty-pc" then
true
else if config.networking.hostName == "marty-latitude" then
true
else if config.networking.hostName == "marty-server" then
false
else
false;
in
{
xdg.portal = {
enable = true;
configPackages = [ pkgs.xdg-desktop-portal-hyprland ];
extraPortals = [ pkgs.xdg-desktop-portal-hyprland ];
};
programs = {
kitty = {
enable = true;
};
hyprlock = {
enable = true;
};
};
wayland.windowManager.hyprland = {
enable = true;
settings = {
exec-once = [
];
"$mod" = "SUPER";
bind = [
"$mod, D, exec, walker"
"$mod, return, exec, kitty"
];
};
};
home.sessionVariables.NIXOS_OZONE_WL = "1";
}