working on wofi

This commit is contained in:
2026-03-11 14:53:53 +01:00
parent f2a1a49d09
commit a7c150d089
19 changed files with 543 additions and 438 deletions
@@ -1,36 +1,32 @@
{ config, pkgs, lib, user, flakeRoot, ... }:
let
xdgDataHome = config.home-manager.users.${user.username}.xdg.dataHome;
in
{ lib, config, pkgs, flakeRoot, ... }:
{
# NixOS: Install Wofi system-wide (optional)
environment.systemPackages = with pkgs; [ wofi ];
# Install Wofi and its dependencies
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 ];
# Home Manager configuration for Wofi
home-manager.users.henrov = {
# Ensure the config and theme directories exist
home.file = {
".config/wofi".source = "${flakeRoot}/.assets/hyprland/conf/wofi";
".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";
};
# 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
*/
# Environment variables for Wofi
home.sessionVariables = {
WOFI_CONFIG = "$HOME/.config/wofi/config";
WOFI_STYLE = "$HOME/.config/wofi/style.css";
};
};
# Systemd service to ensure Wofi is available (optional)
systemd.user.services.wofi = {
description = "Wofi Application Launcher";
wantedBy = [ "default.target" ];
serviceConfig.Type = "oneshot";
serviceConfig.ExecStart = "${pkgs.wofi}/bin/wofi --show drun";
};
}
@@ -5,7 +5,6 @@
flakeRoot,
...
}:
let
starshipConfig = lib.importTOML (flakeRoot + "/assets/system/conf/starship.toml");
in