26 lines
620 B
Nix
26 lines
620 B
Nix
# {{{autogen}}}
|
|
{ lib, config, pkgs, flakeRoot, ... }:
|
|
|
|
let
|
|
username = config.defaultUser or "henrov";
|
|
assetPath = "${flakeRoot}/generated/.config/wofi";
|
|
in
|
|
{
|
|
environment.systemPackages = [ pkgs.wofi ];
|
|
|
|
home-manager.users = {
|
|
${username} = {
|
|
home.file = {
|
|
".config/wofi/config" = {
|
|
text = builtins.readFile "${assetPath}/config";
|
|
force = true;
|
|
};
|
|
".config/wofi/style.css" = {
|
|
text = builtins.replaceStrings ["PLACEHOLDER_USERNAME"] [username] (builtins.readFile "${assetPath}/style.css");
|
|
force = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|