2024-05-30 16:54:58 -03:00
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
2023-01-23 00:36:05 -03:00
|
|
|
specialisation.dark-theme.configuration = {
|
2024-05-30 16:54:58 -03:00
|
|
|
nixpkgs.overlays = [ (final: prev: { uservars = prev.uservars; }) ];
|
2023-01-23 00:36:05 -03:00
|
|
|
};
|
|
|
|
specialisation.light-theme.configuration = {
|
|
|
|
nixpkgs.overlays = [
|
|
|
|
(final: prev: {
|
|
|
|
uservars = prev.uservars // rec {
|
|
|
|
theme = prev.uservars.themes.light;
|
|
|
|
color = theme.color;
|
|
|
|
};
|
|
|
|
})
|
|
|
|
];
|
|
|
|
};
|
|
|
|
environment.systemPackages = [
|
|
|
|
(pkgs.writeShellScriptBin "theme" ''
|
|
|
|
sudo "/nix/var/nix/profiles/system/specialisation/$1-theme/bin/switch-to-configuration" test
|
|
|
|
'')
|
|
|
|
];
|
|
|
|
}
|