-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
flatpak: fonts binding is not needed anymore
- Loading branch information
1 parent
235a426
commit 11fcfa0
Showing
3 changed files
with
1 addition
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,4 @@ | ||
{ pkgs, config, ... }: | ||
_: | ||
{ | ||
services.flatpak.enable = true; | ||
|
||
# Using bindfs to create FHS font & icon directory | ||
system.fsPackages = [ pkgs.bindfs ]; | ||
fileSystems = let | ||
mkRoSymBind = path: { | ||
device = path; | ||
fsType = "fuse.bindfs"; | ||
options = [ "ro" "resolve-symlinks" "x-gvfs-hide" ]; | ||
}; | ||
aggregatedIcons = pkgs.buildEnv { | ||
name = "system-icons"; | ||
paths = with pkgs; [ | ||
breeze-qt5 | ||
papirus-icon-theme | ||
]; | ||
pathsToLink = [ "/share/icons" ]; | ||
}; | ||
aggregatedFonts = pkgs.buildEnv { | ||
name = "system-fonts"; | ||
paths = config.fonts.packages; | ||
pathsToLink = [ "/share/fonts" ]; | ||
}; | ||
in { | ||
# Create an FHS mount to support flatpak host icons/fonts | ||
"/usr/share/icons" = mkRoSymBind "${aggregatedIcons}/share/icons"; | ||
"/usr/share/fonts" = mkRoSymBind "${aggregatedFonts}/share/fonts"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.