diff --git a/hosts/lars/hyprland.nix b/hosts/lars/hyprland.nix index f9178a7..4226214 100644 --- a/hosts/lars/hyprland.nix +++ b/hosts/lars/hyprland.nix @@ -11,6 +11,11 @@ in { default = ",preferred,auto,1"; 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 { @@ -40,7 +45,7 @@ in { home-manager.users.${username} = { wayland.windowManager.hyprland = { enable = true; - settings = { + settings = lib.mkMerge [{ # Monitor config monitor = cfg.monitor; @@ -50,6 +55,10 @@ in { kb_layout = "ch"; }; + animation = [ + "workspaces,1,10,default" + ]; + bind = [ "$mod, Q, killactive" "$mod, return, exec, alacritty" @@ -87,7 +96,7 @@ in { ) 10) ); - }; + } cfg.extra]; }; }; }; diff --git a/hosts/lars/programs.nix b/hosts/lars/programs.nix index af563c0..651a82a 100644 --- a/hosts/lars/programs.nix +++ b/hosts/lars/programs.nix @@ -46,7 +46,6 @@ in { rustdesk neovim tmux - firefox kitty nextcloud-client vscode