mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-27 05:09:18 -05:00
Aly Raffauf
71499fb75d
Some checks are pending
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-build / slateport-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
59 lines
1.4 KiB
Nix
59 lines
1.4 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
config = lib.mkIf config.ar.services.flatpak.enable {
|
|
environment.systemPackages = with pkgs; [gnome-software];
|
|
|
|
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; [
|
|
adwaita-icon-theme
|
|
gnome-themes-extra
|
|
])
|
|
++ lib.optional (config.stylix.enable) config.stylix.cursor.package;
|
|
|
|
pathsToLink = ["/share/icons"];
|
|
};
|
|
|
|
aggregatedFonts = pkgs.buildEnv {
|
|
name = "system-fonts";
|
|
paths = config.fonts.packages;
|
|
pathsToLink = ["/share/fonts"];
|
|
};
|
|
in {
|
|
"/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
|
|
];
|
|
};
|
|
|
|
services.flatpak.enable = true;
|
|
system.fsPackages = [pkgs.bindfs];
|
|
xdg.portal.enable = true;
|
|
};
|
|
}
|