Skip to content

Commit c48fbf4

Browse files
committed
Use ln with -n
I'm pretty sure that the reason I added this was the following error: ln: failed to create symbolic link '/home/virt/.local/share/fonts/fonts': Permission denied
1 parent 2ce5193 commit c48fbf4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

home-manager/common-home-gui.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,12 @@
8181
# Reset flatpak override to make sure that no unnecessary overrides are added
8282
run /usr/bin/flatpak override -u --reset
8383
# Workaround for using the correct font in all applications
84-
run /usr/bin/ln -sf ${config.home.profileDirectory}/share/fonts ${config.xdg.dataHome}/fonts
84+
run /usr/bin/ln -sfn ${config.home.profileDirectory}/share/fonts ${config.xdg.dataHome}/fonts
8585
run /usr/bin/flatpak override -u --filesystem=xdg-data/fonts:ro --filesystem=${config.home.profileDirectory}/share/fonts:ro --filesystem=${pkgs.nerdfonts}/share/fonts:ro
8686
# Workaround for using the correct icons in all applications
8787
run /usr/bin/flatpak override -u --filesystem=xdg-data/icons:ro --filesystem=${config.home.profileDirectory}/share/icons:ro --filesystem=${pkgs.papirus-icon-theme}/share/icons:ro --filesystem=${pkgs.phinger-cursors}/share/icons:ro
8888
# Workaround for using the correct GTK theme in all applications
89-
run /usr/bin/ln -sf ${config.home.profileDirectory}/share/themes ${config.xdg.dataHome}/themes
89+
run /usr/bin/ln -sfn ${config.home.profileDirectory}/share/themes ${config.xdg.dataHome}/themes
9090
run /usr/bin/flatpak override -u --filesystem=xdg-data/themes:ro --filesystem=xdg-config/gtk-2.0:ro --filesystem=xdg-config/gtk-3.0:ro --filesystem=xdg-config/gtk-4.0:ro --filesystem=${config.home.profileDirectory}/share/themes:ro --filesystem=${pkgs.arc-theme}/share/themes:ro
9191
'';
9292
};

0 commit comments

Comments
 (0)