37 lines
717 B
Nix
37 lines
717 B
Nix
{
|
|
config,
|
|
inputs,
|
|
lib,
|
|
pkgs,
|
|
builtins,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.nix-config.quickshell;
|
|
qs = inputs.quickshell.packages.x86_64-linux.default;
|
|
in
|
|
{
|
|
options.nix-config.quickshell.enable = lib.mkEnableOption {
|
|
name = "quickshell";
|
|
description = "Whether to enable quickshell.";
|
|
default = true;
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
home.packages = [
|
|
qs
|
|
pkgs.qt6.qtimageformats
|
|
pkgs.qt6.qt5compat
|
|
pkgs.qt6.qtmultimedia
|
|
pkgs.qt6.qtdeclarative
|
|
pkgs.qt6.qtsvg
|
|
pkgs.qt6.qtwayland
|
|
pkgs.qt6.qtbase
|
|
|
|
];
|
|
|
|
# add the quickshell config (whole directory) to XDG_CONFIG_HOME
|
|
# home.file.".config/quickshell/config".source = ./config;
|
|
};
|
|
}
|