From 8e8c2918636b41d5a808bffa6e33c479594c61e0 Mon Sep 17 00:00:00 2001 From: KeksNino Date: Sat, 8 Aug 2026 00:12:27 +0200 Subject: [PATCH] add kitty home manager config --- hosts/desktop/configuration.nix | 8 ---- hosts/desktop/home-manager/home.nix | 29 +------------ hosts/desktop/packages.nix | 2 +- modules/programs/kitty.nix | 67 +++++++++++++++++++++++++++++ modules/programs/qutebrowser.nix | 24 +++++++++++ 5 files changed, 94 insertions(+), 36 deletions(-) create mode 100644 modules/programs/kitty.nix create mode 100644 modules/programs/qutebrowser.nix diff --git a/hosts/desktop/configuration.nix b/hosts/desktop/configuration.nix index 250de07..8537de4 100644 --- a/hosts/desktop/configuration.nix +++ b/hosts/desktop/configuration.nix @@ -206,14 +206,6 @@ in jack.enable = true; }; - services.pipewire.extraConfig.pipewire."92-clock-quantum" = { - "context.properties" = { - "default.clock.quantum" = 2048; - "default.clock.min-quantum" = 256; - "default.clock.max-quantum" = 4096; - }; - }; - security.pam.loginLimits = [ { domain = "@users"; diff --git a/hosts/desktop/home-manager/home.nix b/hosts/desktop/home-manager/home.nix index 10aab20..ae98599 100644 --- a/hosts/desktop/home-manager/home.nix +++ b/hosts/desktop/home-manager/home.nix @@ -9,6 +9,8 @@ ./mpd.nix ./programs.nix ../../../modules/shell.nix + ../../../modules/programs/qutebrowser.nix + ../../../modules/programs/kitty.nix zen-browser.homeModules.beta ]; @@ -66,37 +68,10 @@ }; }; - programs.qutebrowser = { - enable = true; - settings = { - colors.webpage.preferred_color_scheme = "dark"; - auto_save.session = true; - scrolling.smooth = true; - content.autoplay = false; - content.blocking.method = "both"; - url.default_page = "https://priv.au"; - }; - extraConfig = '' - c.qt.args = ["disable-features=AcceleratedVideoDecodeLinuxGL"] - ''; - keyBindings = { - normal = { - "M" = "hint links spawn mpv {hint-url}"; - }; - }; - searchEngines = { - DEFAULT = "https://priv.au/search?q={}"; - }; - }; - home.sessionPath = [ "${config.home.homeDirectory}/.local/bin" ]; - home.sessionVariables = { - EDITOR = "nvim"; - }; - home.file.".local/share/Steam/steam.cfg".text = '' BootStrapperInhibitAll=enable BootStrapperForceSelfUpdate=disable diff --git a/hosts/desktop/packages.nix b/hosts/desktop/packages.nix index db0421d..6ea8a97 100644 --- a/hosts/desktop/packages.nix +++ b/hosts/desktop/packages.nix @@ -69,7 +69,7 @@ scrcpy gocryptfs proton-vpn - piper + unrar ]; fonts.packages = with pkgs; [ diff --git a/modules/programs/kitty.nix b/modules/programs/kitty.nix new file mode 100644 index 0000000..d0a708e --- /dev/null +++ b/modules/programs/kitty.nix @@ -0,0 +1,67 @@ +{ + programs.kitty = { + enable = true; + shellIntegration.enableFishIntegration = true; + shellIntegration.mode = "enabled"; + settings = { + font_family = "CaskaydiaMono NF"; + font_size = 11.5; + cursor = "#bbccdd"; + scrollback_lines = 50000; + pixel_scroll = true; + cursor_trail = 20; + cursor_trail_start_threshold = 0; + cursor_trail_decay = "0.1 0.2"; + mouse_hide_wait = 0.5; + enable_audio_bell = false; + disable_clipboard_control = false; + + allow_remote_control = true; + listen_on = "unix:/tmp/kitty_pywal"; + single_instance = true; + + tab_bar_edge = "top"; + tab_bar_margin_width = 0.0; + tab_bar_style = "powerline"; + tab_powerline_style = "slanted"; + + tab_title_max_length = 12; + + tab_title_template = ''" {index} {title} "''; + + active_tab_font_style = "bold-italic"; + inactive_tab_foreground = "#dedede"; + inactive_tab_background = "#121212"; + inactive_tab_font_style = "normal"; + + tab_bar_background = "#080808"; + + tab_bar_margin_color = "none"; + foreground = "#dfdfdf"; + background = "#000000"; + + background_opacity = 0; + + selection_foreground = "#000000"; + selection_background = "#aaeeff"; + + kitty_mod = "ctrl+shift"; + }; + + keybindings = { + "ctrl+shift+enter" = "none"; + "ctrl+shift+l" = "none"; + "ctrl+shift+h" = "none"; + "alt+1" = "goto_tab 1"; + "alt+2" = "goto_tab 2"; + "alt+3" = "goto_tab 3"; + "alt+4" = "goto_tab 4"; + "alt+5" = "goto_tab 5"; + "alt+6" = "goto_tab 6"; + "alt+7" = "goto_tab 7"; + "alt+8" = "goto_tab 8"; + "alt+9" = "goto_tab 9"; + "alt+0" = "goto_tab 0"; + }; + }; +} diff --git a/modules/programs/qutebrowser.nix b/modules/programs/qutebrowser.nix new file mode 100644 index 0000000..c588c21 --- /dev/null +++ b/modules/programs/qutebrowser.nix @@ -0,0 +1,24 @@ +{ + programs.qutebrowser = { + enable = true; + settings = { + colors.webpage.preferred_color_scheme = "dark"; + auto_save.session = true; + scrolling.smooth = true; + content.autoplay = false; + content.blocking.method = "both"; + url.default_page = "https://priv.au"; + }; + extraConfig = '' + c.qt.args = ["disable-features=AcceleratedVideoDecodeLinuxGL"] + ''; + keyBindings = { + normal = { + "M" = "hint links spawn mpv {hint-url}"; + }; + }; + searchEngines = { + DEFAULT = "https://priv.au/search?q={}"; + }; + }; +}