31 lines
546 B
Nix
31 lines
546 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
system,
|
|
windows-theme,
|
|
...
|
|
}:
|
|
{
|
|
options = {
|
|
nixp.mate.enable = lib.mkEnableOption "Enable XP configuration in MATE";
|
|
};
|
|
|
|
config = lib.mkIf config.nixp.mate.enable {
|
|
boot.loader = {
|
|
plymouth = {
|
|
theme = "xp";
|
|
themePackages = [ windows-theme.packages.${system}.windows-xp-plymouth ];
|
|
};
|
|
};
|
|
|
|
services = {
|
|
xserver.displayManager.lightdm.background = ./wall.png;
|
|
|
|
displayManager = {
|
|
defaultSession = lib.mkDefault "mate";
|
|
};
|
|
};
|
|
};
|
|
}
|