Files
nix/hosts/common/configs/user/gui/theme/default.nix
2025-06-12 08:40:40 +01:00

28 lines
534 B
Nix

{
user ? throw "user argument is required",
home ? throw "home argument is required",
}:
{
config,
inputs,
lib,
pkgs,
...
}:
let
hmConfig = config.home-manager.users.${user};
themeBin = lib.meta.getExe hmConfig.theme.pkg;
in
{
environment.persistence."/persist/state"."${home}/.config/theme" = { };
home-manager.users.${user} = {
theme.enable = true;
wayland.windowManager.hyprland.settings.bind = [
"Ctrl_Alt, r, exec, ${themeBin}"
"Ctrl_Alt, t, exec, ${themeBin} -m toggle"
];
};
}