Regenerated

This commit is contained in:
2026-03-27 14:15:36 +00:00
parent ccbcce2e3c
commit 7d3ee34f74
3 changed files with 336 additions and 372 deletions
+312 -324
View File
File diff suppressed because it is too large Load Diff
+12 -24
View File
@@ -934,23 +934,7 @@ This is the install for Wofi, the launcher
let let
programName = "wofi"; programName = "wofi";
username = config.defaultUser or "henrov"; username = config.defaultUser or "henrov";
assetPath = "${flakeRoot}/generated/.config/${programName}"; assetPath = "${flakeRoot}/generated/.config/wofi";
# Read all files in the asset directory if it exists
assetFiles =
if builtins.pathExists assetPath then
builtins.attrNames (builtins.readDir assetPath)
else
[];
# Convert files to Home Manager xdg config entries
wofiFiles = lib.genAttrs assetFiles (f: {
name =
if f == "wofi.conf" then ".config/wofi/config"
else if f == "theming.css" then ".config/wofi/style.css"
else ".config/wofi/${f}";
value = { source = "${assetPath}/${f}"; };
});
in in
{ {
# Install Wofi via system packages # Install Wofi via system packages
@@ -958,16 +942,20 @@ in
pkgs.wofi pkgs.wofi
]; ];
# Home Manager configuration home-manager.users = {
_module.args.hmUsers = {
${username} = { ${username} = {
home.packages = [ pkgs.wofi ]; home.file = {
".config/wofi/config" = {
# Deploy all files to ~/.config/wofi/ source = "${assetPath}/config";
home.file = lib.mkMerge wofiFiles; force = true; # <-- allow overwrite
};
".config/wofi/style.css" = {
source = "${assetPath}/style.css";
force = true; # <-- allow overwrite
};
};
}; };
}; };
}
#+END_SRC #+END_SRC
** =.config/wofi/config= ** =.config/wofi/config=
@@ -3,23 +3,7 @@
let let
programName = "wofi"; programName = "wofi";
username = config.defaultUser or "henrov"; username = config.defaultUser or "henrov";
assetPath = "${flakeRoot}/generated/.config/${programName}"; assetPath = "${flakeRoot}/generated/.config/wofi";
# Read all files in the asset directory if it exists
assetFiles =
if builtins.pathExists assetPath then
builtins.attrNames (builtins.readDir assetPath)
else
[];
# Convert files to Home Manager xdg config entries
wofiFiles = lib.genAttrs assetFiles (f: {
name =
if f == "wofi.conf" then ".config/wofi/config"
else if f == "theming.css" then ".config/wofi/style.css"
else ".config/wofi/${f}";
value = { source = "${assetPath}/${f}"; };
});
in in
{ {
# Install Wofi via system packages # Install Wofi via system packages
@@ -27,13 +11,17 @@ in
pkgs.wofi pkgs.wofi
]; ];
# Home Manager configuration home-manager.users = {
_module.args.hmUsers = {
${username} = { ${username} = {
home.packages = [ pkgs.wofi ]; home.file = {
".config/wofi/config" = {
# Deploy all files to ~/.config/wofi/ source = "${assetPath}/config";
home.file = lib.mkMerge wofiFiles; force = true; # <-- allow overwrite
};
".config/wofi/style.css" = {
source = "${assetPath}/style.css";
force = true; # <-- allow overwrite
};
};
}; };
}; };
}