refactor: moved darwin, home-manager, and system configurations to dendrite pattern

This commit is contained in:
Leyla Becker 2026-04-07 15:58:45 -05:00
parent 0ea11e0236
commit 149f4f151f
193 changed files with 3284 additions and 3095 deletions

View file

@ -0,0 +1,31 @@
{...}: {
flake.homeModules.home-manager-mapillary-uploader = {
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.programs.mapillary-uploader;
in {
options.programs.mapillary-uploader = {
enable = mkEnableOption "Mapillary Desktop Uploader";
};
config = mkIf cfg.enable (mkMerge [
{
home.packages = [pkgs.mapillary-uploader];
}
(
mkIf config.impermanence.enable {
home.persistence."${config.impermanence.persistencePath}" = {
directories = [
"${config.xdg.configHome}/mapillary-uploader"
"${config.xdg.dataHome}/mapillary-uploader"
];
};
}
)
]);
};
}