Compare commits

...

2 Commits

Author SHA1 Message Date
8a31f71d80 chore(zen): xdg migration 2026-02-20 17:14:57 +08:00
04116ebfcb chore(hmcl): remove hack 2026-02-20 17:14:37 +08:00
2 changed files with 4 additions and 6 deletions

View File

@@ -2,6 +2,7 @@
config, config,
lib, lib,
pkgs, pkgs,
hostname,
... ...
}: }:
let let
@@ -16,6 +17,7 @@ in
my.hm.programs.zen-browser = { my.hm.programs.zen-browser = {
enable = true; enable = true;
nativeMessagingHosts = [ pkgs.firefoxpwa ]; nativeMessagingHosts = [ pkgs.firefoxpwa ];
suppressXdgMigrationWarning = hostname == "imxyy-nix";
policies = { policies = {
# find more options here: https://mozilla.github.io/policy-templates/ # find more options here: https://mozilla.github.io/policy-templates/
DisableAppUpdate = true; DisableAppUpdate = true;
@@ -23,7 +25,7 @@ in
}; };
}; };
my.persist.homeDirs = [ my.persist.homeDirs = [
".zen" ".config/zen"
]; ];
}; };
} }

View File

@@ -14,11 +14,7 @@ in
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
my.hm.home.packages = [ my.hm.home.packages = [
(pkgs.hmcl.overrideAttrs { pkgs.hmcl
postFixup = ''
substituteInPlace $out/share/applications/HMCL.desktop --replace-fail 'Exec=hmcl' 'Exec=sh -c "cd ~/.local/share/hmcl; hmcl"'
'';
})
]; ];
my.persist.homeDirs = [ my.persist.homeDirs = [