2024-04-07 22:16:33 -04:00
|
|
|
{
|
|
|
|
config,
|
2024-07-18 21:05:35 -04:00
|
|
|
lib,
|
|
|
|
pkgs,
|
2024-04-07 22:16:33 -04:00
|
|
|
...
|
|
|
|
}: {
|
2024-06-26 22:13:02 -04:00
|
|
|
config = lib.mkIf config.ar.services.flatpak.enable {
|
2024-05-27 21:39:30 -04:00
|
|
|
environment.systemPackages = with pkgs; [gnome.gnome-software];
|
2024-05-29 21:02:20 -04:00
|
|
|
|
2024-03-28 16:13:46 -04:00
|
|
|
fileSystems = let
|
|
|
|
mkRoSymBind = path: {
|
|
|
|
device = path;
|
|
|
|
fsType = "fuse.bindfs";
|
2024-04-07 22:16:33 -04:00
|
|
|
options = ["ro" "resolve-symlinks" "x-gvfs-hide"];
|
2024-03-28 16:13:46 -04:00
|
|
|
};
|
2024-08-23 13:52:54 -04:00
|
|
|
|
|
|
|
aggregatedIcons = pkgs.buildEnv {
|
|
|
|
name = "system-icons";
|
|
|
|
paths =
|
|
|
|
(with pkgs; [
|
|
|
|
gnome.adwaita-icon-theme
|
|
|
|
gnome.gnome-themes-extra
|
|
|
|
])
|
|
|
|
++ lib.optional (config.stylix.enable) config.stylix.cursor.package;
|
|
|
|
|
|
|
|
pathsToLink = ["/share/icons"];
|
|
|
|
};
|
|
|
|
|
2024-03-28 16:13:46 -04:00
|
|
|
aggregatedFonts = pkgs.buildEnv {
|
|
|
|
name = "system-fonts";
|
|
|
|
paths = config.fonts.packages;
|
2024-04-07 22:16:33 -04:00
|
|
|
pathsToLink = ["/share/fonts"];
|
2024-03-28 16:13:46 -04:00
|
|
|
};
|
|
|
|
in {
|
2024-08-23 13:52:54 -04:00
|
|
|
"/usr/share/icons" = mkRoSymBind "${aggregatedIcons}/share/icons";
|
|
|
|
"/usr/local/share/fonts" = mkRoSymBind "${aggregatedFonts}/share/fonts";
|
|
|
|
};
|
|
|
|
|
|
|
|
fonts = {
|
|
|
|
fontDir.enable = true;
|
|
|
|
packages =
|
|
|
|
(with pkgs; [
|
|
|
|
noto-fonts
|
|
|
|
noto-fonts-emoji
|
|
|
|
noto-fonts-cjk
|
|
|
|
])
|
|
|
|
++ lib.optionals (config.stylix.enable) [
|
|
|
|
config.stylix.fonts.sansSerif.package
|
|
|
|
config.stylix.fonts.monospace.package
|
|
|
|
config.stylix.fonts.serif.package
|
|
|
|
];
|
2024-03-28 16:13:46 -04:00
|
|
|
};
|
2024-05-27 21:39:30 -04:00
|
|
|
|
|
|
|
services.flatpak.enable = true;
|
|
|
|
system.fsPackages = [pkgs.bindfs];
|
|
|
|
xdg.portal.enable = true;
|
2024-03-28 16:13:46 -04:00
|
|
|
};
|
|
|
|
}
|