diff --git a/modules/_home/default.nix b/modules/_home/default.nix index e0f63a7..d59a854 100644 --- a/modules/_home/default.nix +++ b/modules/_home/default.nix @@ -7,11 +7,7 @@ home.sessionVariables = { TERMINAL = "wezterm"; XDG_TERMINAL_EMULATOR = "wezterm"; - }; - - systemd.user.targets.niri-session = { - Unit.Wants = [ "xdg-desktop-autostart.target" ]; - }; + }; programs.git = { enable = true; diff --git a/modules/_home/niri.nix b/modules/_home/niri.nix index f82c5e7..bb67302 100644 --- a/modules/_home/niri.nix +++ b/modules/_home/niri.nix @@ -9,45 +9,8 @@ QT_SCALE_FACTOR_ROUNDING_POLICY = "RoundPreferFloor"; QT_WAYLAND_DISABLE_WINDOWDECORATION = "1"; 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 = '' // Modificadores: Mod = Super (tecla Windows) input {