1

link icon folder to homedir

This commit is contained in:
2022-07-18 18:24:43 +02:00
parent cf2f45f3f4
commit e6a38df62e

View File

@ -14,6 +14,7 @@ rec {
]; ];
# Config my modules # Config my modules
# TODO: Emacs autosync on rebuild?
modules = { modules = {
emacs.enable = true; emacs.enable = true;
emacs.useDoom = true; emacs.useDoom = true;
@ -46,15 +47,18 @@ rec {
# recursive = true; # recursive = true;
# source = /run/current-system/sw/share/X11/fonts; # We cannot use the absolute path # source = /run/current-system/sw/share/X11/fonts; # We cannot use the absolute path
# }; # };
# We link like this to be able to address the absolute location, also the fonts won't get copied to store # We link like this to be able to address the absolute location, also the fonts won't get copied to store, also icons
home.activation.linkFontDir = lib.hm.dag.entryAfter [ "writeBoundary" ] '' home.activation.linkFontDir = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
if [ ! -L "${home.homeDirectory}/.local/share/fonts" ]; then if [ ! -L "${home.homeDirectory}/.local/share/fonts" ]; then
ln -sf /run/current-system/sw/share/X11/fonts ${home.homeDirectory}/.local/share/fonts ln -sf /run/current-system/sw/share/X11/fonts ${home.homeDirectory}/.local/share/fonts
fi fi
if [ ! -L "${home.homeDirectory}/.local/share/icons" ]; then
ln -sf /run/current-system/sw/share/icons ${home.homeDirectory}/.local/share/icons
fi
''; '';
home.file.".local/share/flatpak/overrides/global".text = '' home.file.".local/share/flatpak/overrides/global".text = ''
[Context] [Context]
filesystems=/run/current-system/sw/share/X11/fonts:ro;/nix/store:ro filesystems=/run/current-system/sw/share/X11/fonts:ro;/run/current-system/sw/share/icons:ro;/nix/store:ro
''; '';
# TODO: Move to gaming modules # TODO: Move to gaming modules
@ -64,7 +68,7 @@ rec {
''; '';
home.file.".local/share/flatpak/overrides/com.usebottles.bottles".text = '' home.file.".local/share/flatpak/overrides/com.usebottles.bottles".text = ''
[Context] [Context]
filesystems=${home.homeDirectory}/.var/app/com.valvesoftware.Steam/data/Steam;<F16>{home.homeDirectory}/Downloads filesystems=${home.homeDirectory}/.var/app/com.valvesoftware.Steam/data/Steam;${home.homeDirectory}/Downloads
''; '';
# TODO: Module # TODO: Module
@ -200,8 +204,8 @@ rec {
# godot # godot
# Audio # Audio
# TODO: Make a module # TODO: Make a module, autosync yabridge on rebuild?
# NOTE: Don't use any system wine, use bottles runner for yabridge # NOTE: yabridge pulls in wine
# vcv-rack # vcv-rack
# bitwig-studio # bitwig-studio
# audacity # audacity