30 lines
685 B
Nix
30 lines
685 B
Nix
{ lib, config, pkgs, flakeRoot, home-manager, ... }:
|
|
|
|
let
|
|
programName = "wofi";
|
|
username = config.defaultUser or "henrov";
|
|
assetPath = "${flakeRoot}/generated/.config/wofi";
|
|
in
|
|
{
|
|
# Install Wofi via system packages
|
|
environment.systemPackages = [
|
|
pkgs.wofi
|
|
];
|
|
|
|
# Use flake-safe Home Manager user definition
|
|
_module.args.hmUsers = {
|
|
${username} = {
|
|
home.file = {
|
|
".config/wofi/config" = {
|
|
source = "${assetPath}/config";
|
|
force = true; # overwrite existing
|
|
};
|
|
".config/wofi/style.css" = {
|
|
source = "${assetPath}/style.css";
|
|
force = true; # overwrite existing
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|