all your home manager are belong to us
This commit is contained in:
parent
e13ad6a8ee
commit
af6df24831
16 changed files with 164 additions and 103 deletions
40
modules/window_manager/hyprland.nix
Normal file
40
modules/window_manager/hyprland.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue