programs, xdg: move app packages and MIME defaults into modules

This commit is contained in:
2026-08-01 17:14:44 +08:00
parent 27aaa9d05f
commit 935530aca5
19 changed files with 317 additions and 147 deletions
+23
View File
@@ -0,0 +1,23 @@
{
config,
lib,
pkgs,
...
}:
let
cfg = config.my.programs.wechat;
in
{
options.my.programs.wechat = {
enable = lib.mkEnableOption "wechat";
};
config = lib.mkIf cfg.enable {
my.hm.home.packages = [
pkgs.wechat
];
my.persist.homeDirs = [
".xwechat"
];
};
}