32 lines
632 B
Nix
32 lines
632 B
Nix
{
|
|
username ? throw "username argument is required",
|
|
}:
|
|
{
|
|
config,
|
|
inputs,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
userConfig = config.users.users.${username};
|
|
hmConfig = config.home-manager.users.${username};
|
|
themeBin = lib.meta.getExe hmConfig.theme.pkg;
|
|
in
|
|
{
|
|
home-manager.users.${username} = {
|
|
imports = [ ./options.nix ];
|
|
|
|
theme.enable = true;
|
|
|
|
wayland.windowManager.hyprland.settings.bind = [
|
|
"Ctrl_Alt, r, exec, ${themeBin}"
|
|
"Ctrl_Alt, t, exec, ${themeBin} toggle"
|
|
];
|
|
|
|
home.persistence."/persist${userConfig.home}".directories = [
|
|
"${hmConfig.xdg.relativeConfigHome}/theme"
|
|
];
|
|
};
|
|
}
|