Files
nixos/Droidnix/generated/hyprland/task_launcher/wofi.nix
T
2026-03-13 23:54:28 +01:00

36 lines
1.0 KiB
Nix

{ 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".text = builtins.readFile "${pkgs.fetchFromGitHub {
owner = "catppuccin";
repo = "wofi";
rev = "a0c34a8e9d3a1f71b1b2a8e3b5b8e3e8b1b3b8e3"; # Replace with the correct SHA256 hash
sha256 = "0000000000000000000000000000000000000000000000000000"; # Replace with the correct SHA256 hash
}}/style-mocha.css";
};
}