33 lines
896 B
Nix
33 lines
896 B
Nix
{ config, pkgs, lib, user, flakeRoot, ... }:
|
|
{
|
|
# 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=${config.xdg.dataHome}/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 = "a0c34a8e9d3a1f71b1b2a8e3b5b8e3e8b1b3b8e3"; # Replace with the correct SHA256 hash
|
|
file = "style-mocha.css"; # or latte/frappe/macchiato
|
|
};
|
|
};
|
|
}
|