{ config, pkgs, lib, user, flakeRoot, ... }: let xdgDataHome = config.home-manager.users.${user.username}.xdg.dataHome; in { # NixOS: Install Wofi system-wide (optional) environment.systemPackages = with pkgs; [ wofi ]; # Home Manager: User-specific Wofi config home-manager.users.${user.username} = { # Install Wofi for the user home.packages = with pkgs; [ wofi ]; # Wofi configuration xdg.configFile."wofi/config".text = '' dark width=500 height=800 lines=10 columns=1 cache_dir=${xdgDataHome}/wofi allow_images=true allow_markup=true show_drun=true ''; /* # Catppuccin Mocha theme for Wofi xdg.configFile."wofi/style.css".source = pkgs.fetchFromGitHub { owner = "catppuccin"; repo = "wofi"; rev = "d4c8c0a6b57e2e97a0d7b87e186322e933a8d9e0"; # Example commit hash (replace with a valid one) sha256 = "sha256-0Rn9CKPm0v3rXlx7nyXD3QJ5Xq3XZvBwgqXzWmOyZkA="; # Replace with the correct hash } + "/mocha.css"; # Correct file name */ }; }