This is a very niche issue, but for those of you familiar with Nix and Hyprland, hopefully someone can help.
I’ve installed a number of packages through Nix with home manager (running Arch, not NixOS). In Hyprland’s config file, hyprland.conf
, you can specify a command to be executed when the config is loaded:
exec-once=bash ~/.config/hypr/start.sh
Here are the contents of start.sh
#!/usr/bin/env bash
swww init &
swww img ~/Wallpapers/bg.png &
waybar &
swaync &
nm-applet --indicator &
wl-paste --type text --watch cliphist store &
wl-paste --type image --watch cliphist store &
All of the commands used there reference packages that are installed with Nix home manager. But none of them work when started from the config for this reason. Whenever I run start.sh
myself, it works. If I try running any of the commands myself, it works. For some reason it just doesn’t work from the Hypland config. Anyone know why?