diff --git a/config/default.nix b/config/default.nix index a6591cf7..84eb356c 100644 --- a/config/default.nix +++ b/config/default.nix @@ -64,6 +64,7 @@ in webcord blueman gtk-engine-murrine + opensnitch-ui ]; file = @@ -147,4 +148,22 @@ in 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" ]; + }; + + environment = { + QT_QPA_PLATFORMTHEME = "${gtkStyle}"; + PATH = "${config.home.profileDirectory}/bin"; + }; + Service = { + ExecStart = "${pkgs.opensnitch-ui}/bin/opensnitch-ui"; + }; + + Install = { WantedBy = [ "graphical-session.target" ]; }; + }; } diff --git a/dots/.config/hypr/hyprland.conf b/dots/.config/hypr/hyprland.conf index b4a578d4..84016dab 100644 --- a/dots/.config/hypr/hyprland.conf +++ b/dots/.config/hypr/hyprland.conf @@ -12,7 +12,6 @@ exec-once = udiskie --tray exec-once = blueman-applet exec-once = slimbookbattery --minimize exec = clight-gui --tray -exec = sleep 5 && opensnitch-ui --background exec = systemd-run --user -u wallpaper-manager ~/.config/hypr/scripts/init-wallpapers.bash || systemctl --user restart wallpaper-manager exec-once = systemctl --user start compositor.target exec-once = xwaylandvideobridge diff --git a/dots/.config/zsh/config/init.zsh b/dots/.config/zsh/config/init.zsh index e75c3c21..649c490d 100644 --- a/dots/.config/zsh/config/init.zsh +++ b/dots/.config/zsh/config/init.zsh @@ -6,8 +6,8 @@ configure() { export XDG_BIN_HOME="${HOME}/.local/bin" export XDG_DATA_HOME="${HOME}/.local/share" export XDG_STATE_HOME="${HOME}/.local/state" - export XDG_DATA_DIRS="/usr/local/share:/usr/share" - export XDG_CONFIG_DIRS="/etc/xdg" + export XDG_DATA_DIRS="${XDG_DATA_DIRS}:/usr/local/share:/usr/share" + export XDG_CONFIG_DIRS="${XDG_CONFIG_DIRS}:/etc/xdg" } init() { diff --git a/flake.nix b/flake.nix index e5f3be01..2731d6b6 100644 --- a/flake.nix +++ b/flake.nix @@ -24,7 +24,20 @@ ({ nixpkgs.overlays = [ inputs.neovim-nightly-overlay.overlay - (self: super: { kanagawa-gtk-theme = super.callPackage ./pkgs/kanagawa-gtk { }; }) + (self: super: { + kanagawa-gtk-theme = super.callPackage ./pkgs/kanagawa-gtk { }; + lxappearance = super.lxappearance.overrideAttrs (oldAttrs: { + postInstall = '' + wrapProgram $out/bin/lxappearance --prefix GDK_BACKEND : x11 + ''; + }); + opensnitch-ui = super.opensnitch-ui.overrideAttrs + (oldAttrs: rec { + propagatedBuildInputs = oldAttrs.propagatedBuildInputs ++ [ + super.python311Packages.qt-material + ]; + }); + }) ]; home = { username = "${username}";