EdenQwQ/os/system/stylix.nix
2025-03-01 22:35:08 +08:00

29 lines
626 B
Nix

{
self,
lib,
host,
user,
...
}:
let
cfg = self.homeConfigurations."${user}@${host}".config;
in
{
stylix = {
enable = true;
base16Scheme = lib.mkDefault cfg.stylix.base16Scheme;
autoEnable = false;
targets = {
console.enable = true;
gnome.enable = true;
grub.enable = true;
plymouth.enable = true;
};
};
specialisation = builtins.mapAttrs (name: value: {
configuration = {
stylix.base16Scheme = lib.mkForce cfg.specialisation.${name}.configuration.stylix.base16Scheme;
environment.etc."specialisation".text = name;
};
}) cfg.specialisation;
}