fix: move hyprland shell init to hyprland

This commit is contained in:
Mohammad Rafiq 2025-03-30 08:14:12 +08:00
parent 03abee8b66
commit a8c03f0261
No known key found for this signature in database
3 changed files with 10 additions and 6 deletions

View file

@ -29,6 +29,10 @@
(lib.optionals (hostname == "nemesis") [
./bootloaders/systemd-boot.nix
./filesystems/hw-nemesis.nix
# (import ./filesystems/impermanence.nix {
# inherit inputs lib;
# device = "nvme-nvme.c0a9-323332354536453737343334-435432303030503353534438-00000001";
# })
./hardware/cpu_amd.nix
./hardware/nvidia.nix
])

View file

@ -4,6 +4,12 @@
...
}:
{
environment.loginShellInit = # sh
''
if [ -z "$WAYLAND_DISPLAY" ] && [ "$XDG_VTNR" -eq 1 ]; then
dbus-run-session Hyprland
fi
'';
programs.hyprland = {
enable = true;
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;

View file

@ -24,12 +24,6 @@
bindkey '^H' backward-kill-word
'';
# TODO: Look into whether we need to add the history attribute
profileExtra = # bash
''
if [ -z "$WAYLAND_DISPLAY" ] && [ "$XDG_VTNR" -eq 1 ]; then
dbus-run-session Hyprland
fi
'';
plugins = [
{
name = "vi-mode";