From 6bbfe37bbab016a2bba407986ec1a1d6d9e21518 Mon Sep 17 00:00:00 2001 From: NullBite Date: Sat, 24 Feb 2024 11:48:08 +0100 Subject: [PATCH] home: enable zsh, configure qt --- home/common/wm.nix | 5 +++++ home/profile/base.nix | 23 +++++++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/home/common/wm.nix b/home/common/wm.nix index ae7a321..8ffbf11 100644 --- a/home/common/wm.nix +++ b/home/common/wm.nix @@ -10,6 +10,11 @@ in config = lib.mkIf cfg.enable { # Common options for standalone window managers; many of these (or # alternatives thereof) are pulled in by desktop environments. + + qt.enable = true; + qt.platformTheme = "qtct"; + qt.style.name = "kvantum"; + home.packages = with pkgs; [ qt5ct qt6ct diff --git a/home/profile/base.nix b/home/profile/base.nix index 31f10ee..d7d5716 100644 --- a/home/profile/base.nix +++ b/home/profile/base.nix @@ -15,6 +15,29 @@ in config = lib.mkIf cfg.enable { nixfiles.programs.comma.enable = true; + + # TODO move this stuff to a zsh.nix or something; this is just a quick fix so home.sessionVariables works + programs.fzf.enable = true; + programs.fzf.enableZshIntegration = true; + programs.zsh = { + enable = true; + envExtra = '' + export HOME_MANAGER_MANAGED=true + [[ -e ~/dotfiles/shell/.zshrc ]] && . ~/dotfiles/shell/.zshrc ]] + unset HOME_MANAGER_MANAGED + ''; + oh-my-zsh = { + enable = true; + theme = "robbyrussell"; + extraConfig = '' + DISABLE_MAGIC_FUNCTIONS="true" + ''; + plugins = [ + "git" + ]; + }; + }; + home.packages = with pkgs; [ btop fzf