working on wofi

This commit is contained in:
2026-03-11 14:55:52 +01:00
parent cda39b3c91
commit 1219d03218
@@ -7,22 +7,17 @@
}: }:
{ {
# Install Wofi and its dependencies # Install Wofi
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [ wofi ];
wofi
];
# Home Manager configuration for Wofi # Home Manager configuration for Wofi
home-manager.users.henrov = { home-manager.users.henrov = {
# Create the config directory if it doesn't exist # Manage only the config and style files
home.file = { home.file = {
".config/wofi/config".text = lib.readFile "${flakeRoot}/.assets/hyprland/conf/wofi/wofi.conf"; ".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"; ".config/wofi/style.css".source = "${flakeRoot}/.assets/hyprland/conf/wofi/theming.css";
}; };
# Ensure the .config/wofi directory exists
home.file.".config/wofi".ensureDir = true;
# Environment variables for Wofi # Environment variables for Wofi
home.sessionVariables = { home.sessionVariables = {
WOFI_CONFIG = "$HOME/.config/wofi/config"; WOFI_CONFIG = "$HOME/.config/wofi/config";