all your home manager are belong to us

This commit is contained in:
martyTF 2025-12-18 12:52:29 +01:00
parent e13ad6a8ee
commit af6df24831
16 changed files with 164 additions and 103 deletions

View file

@ -0,0 +1,40 @@
{
config,
lib,
pkgs,
...
}:
{
options = {
window_manager = {
hyprland.enable = lib.mkEnableOption "enable hyprland";
};
};
config = lib.mkIf config.window_manager.hyprland.enable {
xdg.portal = {
enable = true;
configPackages = [ pkgs.xdg-desktop-portal-hyprland ];
extraPortals = [ pkgs.xdg-desktop-portal-hyprland ];
};
programs = {
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";
};
}