nixos-config/home-manager/files.nix
2024-10-16 19:34:52 +02:00

24 lines
560 B
Nix

{ extra, ... }:
{
home.file."bin/xinitrc" = {
executable = true;
text = ''
#!/bin/sh -e
cd "$HOME"
if test -z "$DBUS_SESSION_BUS_ADDRESS"; then
eval $(dbus-launch --exit-with-session --sh-syntax)
fi
systemctl --user import-environment DISPLAY XAUTHORITY
if command -v dbus-update-activation-environment >/dev/null 2>&1; then
dbus-update-activation-environment DISPLAY XAUTHORITY
fi
xwallpaper --focus ${extra.wall}
export KDEWM=i3
exec startplasma-x11
'';
};
}