From 1261b7fa12caf8f202015ad804c21c974ce8d01b Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sun, 10 Dec 2023 00:41:45 -0600 Subject: [PATCH] feat(nix-hm): add additional packages and services, remove qt --- config/default.nix | 58 +++++++++++++++++++++++++--------------------- 1 file changed, 31 insertions(+), 27 deletions(-) diff --git a/config/default.nix b/config/default.nix index 2580cf4b..889d527f 100644 --- a/config/default.nix +++ b/config/default.nix @@ -12,7 +12,7 @@ let }) # HACK: We don't use the absolute path in readDir to respect pure evaluation in nix flakes. (builtins.attrNames (builtins.readDir ../dots/${dir})))); - gtkStyle = "gtk2"; + gtkStyle = "gtk2"; in { programs.home-manager.enable = true; @@ -37,7 +37,6 @@ in llvm openssh openssl - pkg-config wget rsync readline @@ -56,22 +55,20 @@ in ripgrep fd nixfmt - qt6Packages.qt6gtk2 - qt6Packages.qt6ct - libsForQt5.qtstyleplugins - libsForQt5.qt5ct + gtk2 lxappearance webcord - blueman gtk-engine-murrine opensnitch-ui - twemoji-color-emoji + twitter-color-emoji open-sans noto-fonts fira-code nerdfonts + direnv ]; + file = { ".local/" = { @@ -148,27 +145,34 @@ in gtk4.extraConfig = extraGtkConfig; }; - qt = { - enable = true; - platformTheme = "gtk"; - }; - - services.blueman-applet.enable = true; - systemd.user.services.opensnitch-ui = { - Unit = { - Description = "Opensnitch ui"; - After = [ "graphical-session-pre.target" ]; - PartOf = [ "graphical-session.target" ]; + systemd.user = { + targets.compositor = { + Unit = { + Description = "Compositor target for WM"; + After = [ "graphical-session.target" ]; + PartOf = [ "graphical-session.target" ]; + }; }; + services = { + opensnitch-ui = { + Unit = { + Description = "Opensnitch ui"; + PartOf = [ "compositor.target" ]; + After = [ "compositor.target" ]; + ConditionEnvironment = [ "WAYLAND_DISPLAY" "HOME" "XDG_RUNTIME_DIR" ]; + }; - environment = { - QT_QPA_PLATFORMTHEME = "${gtkStyle}"; - PATH = "${config.home.profileDirectory}/bin"; - }; - Service = { - ExecStart = "${pkgs.opensnitch-ui}/bin/opensnitch-ui"; - }; + Service = { + ExecStart = "${pkgs.opensnitch-ui}/bin/opensnitch-ui"; + }; - Install = { WantedBy = [ "graphical-session.target" ]; }; + environment = { + QT_QPA_PLATFORMTHEME = "${gtkStyle}"; + PATH = "${config.home.profileDirectory}/bin"; + }; + + Install = { WantedBy = [ "compositor.target" ]; }; + }; + }; }; }