mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2026-04-14 13:19:09 +02:00
22 lines
668 B
Nix
22 lines
668 B
Nix
{ self, lib, config, vars, withHomeManager, ... }:
|
|
{
|
|
options.swarselmodules.stylix = lib.mkEnableOption "stylix config";
|
|
config = {
|
|
stylix = {
|
|
enable = true;
|
|
base16Scheme = "${self}/files/stylix/swarsel.yaml";
|
|
} // lib.optionalAttrs config.swarselmodules.stylix
|
|
(lib.recursiveUpdate
|
|
{
|
|
targets.grub.enable = false; # the styling makes grub more ugly
|
|
image = config.swarselsystems.wallpaper;
|
|
}
|
|
vars.stylix);
|
|
} // lib.optionalAttrs withHomeManager {
|
|
home-manager.users."${config.swarselsystems.mainUser}" = {
|
|
stylix = {
|
|
targets = vars.stylixHomeTargets;
|
|
};
|
|
};
|
|
};
|
|
}
|