New structure since I kept struggling with the home-manager implemnentation

This commit is contained in:
2026-03-18 15:05:33 +00:00
parent 86c3f52851
commit 084cd4c0f1
86 changed files with 507 additions and 4509 deletions
+36
View File
@@ -0,0 +1,36 @@
{
lib,
config,
pkgs,
flakeRoot,
user,
...
}:
let
wofiConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/wofi";
# Dynamically read all files in assets/hyprland/conf/wofi/
wofiConfs =
lib.genAttrs (builtins.attrNames (builtins.readDir "${flakeRoot}/assets/system/conf/wofi"))
(name: {
text = builtins.readFile "${flakeRoot}/assets/system/conf/wofi/${name}";
});
in
{
environment.systemPackages = with pkgs; [
wofi
];
home-manager.users.${user.username} = {
home.file = {
# Map the files to their target paths in ~/.config/wofi/
"${wofiConfigDir}/config" = wofiConfs."wofi.conf"; # Use the actual filename
"${wofiConfigDir}/style.css" = wofiConfs."theming.css"; # Use the actual filename
};
home.sessionVariables = {
WOFI_CONFIG = "${wofiConfigDir}/config";
WOFI_STYLE = "${wofiConfigDir}/style.css";
};
};
}