27 lines
491 B
Nix
27 lines
491 B
Nix
{
|
|
lib,
|
|
config,
|
|
dots,
|
|
pkgs,
|
|
inputs,
|
|
...
|
|
}:
|
|
|
|
let
|
|
cfg = config.custom.gui.aerospace;
|
|
in
|
|
{
|
|
options.custom.gui = with lib; {
|
|
aerospace = {
|
|
enable = mkEnableOption "Enable aerospace";
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
hm.home.packages = [
|
|
inputs.aerospace-scratchpad.packages.${pkgs.stdenv.hostPlatform.system}.default
|
|
];
|
|
hm.xdg.configFile."aerospace".source =
|
|
config.hm.lib.file.mkOutOfStoreSymlink "${dots}/config/aerospace";
|
|
};
|
|
}
|