mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
nix: Add host polder and refractor modules
This commit is contained in:
parent
1b99070718
commit
3756bbfb45
38 changed files with 284 additions and 172 deletions
|
|
@ -1,68 +0,0 @@
|
|||
{pkgs, ...}: let
|
||||
fontPkgs = [
|
||||
pkgs.maple-mono.NF
|
||||
pkgs.sarasa-gothic
|
||||
pkgs.lxgw-wenkai
|
||||
pkgs.lxgw-neoxihei
|
||||
pkgs.noto-fonts-cjk-sans
|
||||
pkgs.noto-fonts
|
||||
pkgs.noto-fonts-emoji
|
||||
pkgs.nerd-fonts.jetbrains-mono
|
||||
];
|
||||
in {
|
||||
environment.systemPackages = fontPkgs;
|
||||
|
||||
fonts = {
|
||||
enableDefaultPackages = true;
|
||||
packages = fontPkgs;
|
||||
|
||||
fontconfig = {
|
||||
enable = true;
|
||||
defaultFonts = {
|
||||
monospace = [
|
||||
"Maple Mono NF"
|
||||
"JetBrainsMono Nerd Font"
|
||||
];
|
||||
serif = ["LXGW WenKai"];
|
||||
sansSerif = ["LXGW Neo XiHei"];
|
||||
};
|
||||
};
|
||||
fontDir.enable = true;
|
||||
};
|
||||
|
||||
system.fsPackages = [pkgs.bindfs];
|
||||
fileSystems = let
|
||||
mkRoSymBind = path: {
|
||||
device = path;
|
||||
fsType = "fuse.bindfs";
|
||||
options = [
|
||||
"ro"
|
||||
"resolve-symlinks"
|
||||
"x-gvfs-hide"
|
||||
];
|
||||
};
|
||||
aggregated = pkgs.buildEnv {
|
||||
name = "system-fonts-and-icons";
|
||||
paths =
|
||||
fontPkgs
|
||||
++ [
|
||||
# Add cursor supports
|
||||
pkgs.kdePackages.breeze
|
||||
]; # with pkgs; [
|
||||
# libsForQt5.breeze-qt5
|
||||
|
||||
# noto-fonts
|
||||
# noto-fonts-emoji
|
||||
# noto-fonts-cjk-sans
|
||||
# noto-fonts-cjk-serif
|
||||
# ];
|
||||
pathsToLink = [
|
||||
"/share/fonts"
|
||||
"/share/icons"
|
||||
];
|
||||
};
|
||||
in {
|
||||
"/usr/share/icons" = mkRoSymBind "${aggregated}/share/icons";
|
||||
"/usr/share/fonts" = mkRoSymBind "${aggregated}/share/fonts";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue