feat(nvim-hm): migrate opensnitch to hm service

This commit is contained in:
Price Hiller 2023-12-01 02:28:40 -06:00
parent 61ec5c6ef0
commit 7b2ca6062a
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8
4 changed files with 35 additions and 4 deletions

View File

@ -64,6 +64,7 @@ in
webcord webcord
blueman blueman
gtk-engine-murrine gtk-engine-murrine
opensnitch-ui
]; ];
file = file =
@ -147,4 +148,22 @@ in
platformTheme = "gtk"; 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" ]; };
};
} }

View File

@ -12,7 +12,6 @@ exec-once = udiskie --tray
exec-once = blueman-applet exec-once = blueman-applet
exec-once = slimbookbattery --minimize exec-once = slimbookbattery --minimize
exec = clight-gui --tray 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 = 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 = systemctl --user start compositor.target
exec-once = xwaylandvideobridge exec-once = xwaylandvideobridge

View File

@ -6,8 +6,8 @@ configure() {
export XDG_BIN_HOME="${HOME}/.local/bin" export XDG_BIN_HOME="${HOME}/.local/bin"
export XDG_DATA_HOME="${HOME}/.local/share" export XDG_DATA_HOME="${HOME}/.local/share"
export XDG_STATE_HOME="${HOME}/.local/state" export XDG_STATE_HOME="${HOME}/.local/state"
export XDG_DATA_DIRS="/usr/local/share:/usr/share" export XDG_DATA_DIRS="${XDG_DATA_DIRS}:/usr/local/share:/usr/share"
export XDG_CONFIG_DIRS="/etc/xdg" export XDG_CONFIG_DIRS="${XDG_CONFIG_DIRS}:/etc/xdg"
} }
init() { init() {

View File

@ -24,7 +24,20 @@
({ ({
nixpkgs.overlays = [ nixpkgs.overlays = [
inputs.neovim-nightly-overlay.overlay 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 = { home = {
username = "${username}"; username = "${username}";