Files
nixos/modules/features/quickshell/default.nix

33 lines
663 B
Nix

{
moduleWithSystem,
inputs,
...
}: {
flake.nixosModules.quickshell = moduleWithSystem ({
self',
pkgs,
...
}: {config, ...}: {
environment.systemPackages = with self'.packages;
[
quickshell
]
++ (
if config.hyprland.enablePlugins == true
then
# If on tablet enable on screen keyboard
(with pkgs; [
wvkbd
])
else []
);
});
perSystem = {pkgs, ...}: {
packages.quickshell = inputs.wrappers.wrappers.quickshell.wrap {
inherit pkgs;
configDir = inputs.quickshell;
configFile = "${inputs.quickshell}/shell.qml";
};
};
}