Further hyprland config

This commit is contained in:
LarsZauberer 2024-04-13 19:00:23 +02:00
commit fd5a2015ee
2 changed files with 11 additions and 3 deletions

View file

@ -11,6 +11,11 @@ in {
default = ",preferred,auto,1"; default = ",preferred,auto,1";
type = types.listOf(types.str); type = types.listOf(types.str);
}; };
extra = mkOption {
description = "any extra configuration to add to the hyprland config file";
default = {};
type = types.attrs;
};
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
@ -40,7 +45,7 @@ in {
home-manager.users.${username} = { home-manager.users.${username} = {
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
settings = { settings = lib.mkMerge [{
# Monitor config # Monitor config
monitor = cfg.monitor; monitor = cfg.monitor;
@ -50,6 +55,10 @@ in {
kb_layout = "ch"; kb_layout = "ch";
}; };
animation = [
"workspaces,1,10,default"
];
bind = [ bind = [
"$mod, Q, killactive" "$mod, Q, killactive"
"$mod, return, exec, alacritty" "$mod, return, exec, alacritty"
@ -87,7 +96,7 @@ in {
) )
10) 10)
); );
}; } cfg.extra];
}; };
}; };
}; };

View file

@ -46,7 +46,6 @@ in {
rustdesk rustdesk
neovim neovim
tmux tmux
firefox
kitty kitty
nextcloud-client nextcloud-client
vscode vscode