fix: debloat some services

note: when I created the config I struggled with making desktop
apps work, to a point where every possible solution was tried.
if something breaks in the future and stops working, the answer
is here.
This commit is contained in:
Zoty 2026-03-28 03:38:11 -03:00
parent 652b1f3dd3
commit 8ba1b5e9c8
Signed by: Zoty
SSH key fingerprint: SHA256:WsGEGivgl37t3Mth6uugXMOgMCTR7QolIepNbC+j/tA
2 changed files with 3 additions and 44 deletions

View file

@ -9,10 +9,6 @@
XDG_TERMINAL_EMULATOR = "wezterm"; XDG_TERMINAL_EMULATOR = "wezterm";
}; };
systemd.user.targets.niri-session = {
Unit.Wants = [ "xdg-desktop-autostart.target" ];
};
programs.git = { programs.git = {
enable = true; enable = true;
userName = "Zoty"; userName = "Zoty";

View file

@ -11,43 +11,6 @@
XDG_MENU_PREFIX = "plasma-"; XDG_MENU_PREFIX = "plasma-";
}; };
systemd.user.services.niri-env-import = {
Unit = {
Description = "Import Niri Wayland environment into systemd and D-Bus";
After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ];
};
Service = {
Type = "oneshot";
ExecStart = pkgs.writeShellScript "niri-env-import" ''
${pkgs.dbus}/bin/dbus-update-activation-environment --systemd \
WAYLAND_DISPLAY \
XDG_CURRENT_DESKTOP \
XDG_SESSION_DESKTOP \
QT_QPA_PLATFORM
'';
RemainAfterExit = true;
};
Install.WantedBy = [ "graphical-session.target" ];
};
systemd.user.services.niri-flake-polkit = {
Unit.After = [ "niri-env-import.service" ];
};
systemd.user.services.xwayland-satellite = {
Unit = {
Description = "Xwayland satellite";
After = [ "graphical-session.target" ];
PartOf = [ "graphical-session.target" ];
};
Service = {
ExecStart = "${pkgs.xwayland-satellite}/bin/xwayland-satellite";
Restart = "on-failure";
};
Install.WantedBy = [ "graphical-session.target" ];
};
xdg.configFile."niri/config.kdl".text = '' xdg.configFile."niri/config.kdl".text = ''
// Modificadores: Mod = Super (tecla Windows) // Modificadores: Mod = Super (tecla Windows)
input { input {