Add hyprland utilities
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ config, inputs, pkgs, ... }:
|
||||
{ config, inputs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
@@ -21,14 +21,7 @@
|
||||
./options/home-manager/theme
|
||||
];
|
||||
|
||||
home = {
|
||||
packages = with pkgs; [
|
||||
pavucontrol
|
||||
];
|
||||
|
||||
stateVersion = "24.05";
|
||||
};
|
||||
|
||||
home.stateVersion = "24.05";
|
||||
systemd.user.startServices = "sd-switch";
|
||||
nix.settings = config.nix.settings;
|
||||
}];
|
||||
|
@@ -7,6 +7,11 @@ let
|
||||
runtimeInputs = with pkgs; [ coreutils-full ];
|
||||
bashOptions = [ "nounset" "pipefail" ];
|
||||
text = ''
|
||||
if [ -z "$WAYLAND_DISPLAY" ]; then
|
||||
echo "No Wayland session active. Exiting."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
[ ! -L "${cfg.configDir}/wallpaper" ] && ln -sf "${cfg.wallpaper}" "${cfg.configDir}/wallpaper"
|
||||
[ ! -f "${cfg.configDir}/mode" ] && echo "${cfg.mode}" > "${cfg.configDir}/mode"
|
||||
|
||||
|
Reference in New Issue
Block a user