Files
nixos/Droidnix/generated/hyprland/task_launcher/wofi.nix
T
2026-03-11 15:02:13 +01:00

26 lines
687 B
Nix

{ lib, config, pkgs, ... }:
let
# Copy the files into the Nix store
wofiConf = builtins.readFile (toFile "wofi.conf" (builtins.readFile ./assets/hyprland/conf/wofi/wofi.conf));
wofiStyle = ./assets/hyprland/conf/wofi/theming.css;
in
{
# Install Wofi
environment.systemPackages = with pkgs; [ wofi ];
# Home Manager configuration for Wofi
home-manager.users.henrov = {
home.file = {
".config/wofi/config".text = wofiConf;
".config/wofi/style.css".source = wofiStyle;
};
# Environment variables for Wofi
home.sessionVariables = {
WOFI_CONFIG = "$HOME/.config/wofi/config";
WOFI_STYLE = "$HOME/.config/wofi/style.css";
};
};
}