mirror of
https://github.com/EdenQwQ/nixos.git
synced 2025-12-26 18:34:56 +08:00
34 lines
839 B
Nix
34 lines
839 B
Nix
{
|
|
inputs,
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
options.desktopShell =
|
|
with lib;
|
|
mkOption {
|
|
type = types.str;
|
|
description = "The desktop shell to use.";
|
|
};
|
|
|
|
config = {
|
|
programs.waybar = {
|
|
enable = config.desktopShell == "waybar";
|
|
systemd.enable = config.desktopShell == "waybar";
|
|
};
|
|
programs.dankMaterialShell = {
|
|
enable = config.desktopShell == "dms";
|
|
enableSystemd = config.desktopShell == "dms";
|
|
};
|
|
programs.caelestia = {
|
|
enable = config.desktopShell == "caelestia";
|
|
systemd.enable = config.desktopShell == "caelestia";
|
|
};
|
|
programs.noctalia-shell.enable = config.desktopShell == "noctalia-shell";
|
|
home.packages = lib.mkIf (config.desktopShell == "noctalia-shell") [
|
|
inputs.noctalia-shell.packages.${pkgs.system}.default
|
|
];
|
|
};
|
|
}
|