fonts: use rsync to copy fonts
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
e1c8b471e1
commit
266244cd6b
1 changed files with 3 additions and 1 deletions
|
@ -6,6 +6,8 @@
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.custom.settings.fonts;
|
cfg = config.custom.settings.fonts;
|
||||||
|
|
||||||
|
rsync = getExe pkgs.rsync;
|
||||||
in {
|
in {
|
||||||
options.custom.settings.fonts = {
|
options.custom.settings.fonts = {
|
||||||
enable = mkOption {default = false;};
|
enable = mkOption {default = false;};
|
||||||
|
@ -99,7 +101,7 @@ in {
|
||||||
# https://github.com/ONLYOFFICE/DocumentServer/issues/1859 et al.
|
# https://github.com/ONLYOFFICE/DocumentServer/issues/1859 et al.
|
||||||
home.activation = {
|
home.activation = {
|
||||||
copy-fonts = lib.home-manager.hm.dag.entryAfter ["writeBoundary"] ''
|
copy-fonts = lib.home-manager.hm.dag.entryAfter ["writeBoundary"] ''
|
||||||
run cp --recursive --dereference --force \
|
run ${rsync} --recursive --copy-links \
|
||||||
/run/current-system/sw/share/fonts "$XDG_DATA_HOME/"
|
/run/current-system/sw/share/fonts "$XDG_DATA_HOME/"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue