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:
parent
652b1f3dd3
commit
8ba1b5e9c8
2 changed files with 3 additions and 44 deletions
|
|
@ -7,11 +7,7 @@
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
TERMINAL = "wezterm";
|
TERMINAL = "wezterm";
|
||||||
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;
|
||||||
|
|
|
||||||
|
|
@ -9,45 +9,8 @@
|
||||||
QT_SCALE_FACTOR_ROUNDING_POLICY = "RoundPreferFloor";
|
QT_SCALE_FACTOR_ROUNDING_POLICY = "RoundPreferFloor";
|
||||||
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
|
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
|
||||||
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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue