Files
nixos/Droidnix/generated/hyprland/task_launcher/wofi.nix
T
2026-03-11 14:53:53 +01:00

33 lines
1.0 KiB
Nix

{ lib, config, pkgs, flakeRoot, ... }:
{
# Install Wofi and its dependencies
environment.systemPackages = with pkgs; [
wofi
];
# Home Manager configuration for Wofi
home-manager.users.henrov = {
# Ensure the config and theme directories exist
home.file = {
".config/wofi".source = "${flakeRoot}/.assets/hyprland/conf/wofi";
".config/wofi/config".text = lib.readFile "${flakeRoot}/.assets/hyprland/conf/wofi/wofi.conf";
".config/wofi/style.css".source = "${flakeRoot}/.assets/hyprland/conf/wofi/theming.css";
};
# Environment variables for Wofi
home.sessionVariables = {
WOFI_CONFIG = "$HOME/.config/wofi/config";
WOFI_STYLE = "$HOME/.config/wofi/style.css";
};
};
# Systemd service to ensure Wofi is available (optional)
systemd.user.services.wofi = {
description = "Wofi Application Launcher";
wantedBy = [ "default.target" ];
serviceConfig.Type = "oneshot";
serviceConfig.ExecStart = "${pkgs.wofi}/bin/wofi --show drun";
};
}