mirror of
https://github.com/js0ny/dotfiles.git
synced 2026-03-23 11:12:42 +00:00
nix: dirty flatpak fonts
This commit is contained in:
parent
af7c7b49f2
commit
608cd05802
8 changed files with 67 additions and 23 deletions
|
|
@ -1,5 +1,5 @@
|
|||
# https://github.com/gmodena/nix-flatpak
|
||||
{nix-flatpak, ...}: {
|
||||
{home, ...}: {
|
||||
services.flatpak.enable = true;
|
||||
services.flatpak.remotes = [
|
||||
{
|
||||
|
|
@ -28,11 +28,14 @@
|
|||
global = {
|
||||
Context = {
|
||||
# Force wayland by default
|
||||
sockets = ["wayland" "!x11" "!fallback-x11"];
|
||||
filesystems = [
|
||||
"/run/current-system/sw/share/fonts:ro"
|
||||
"xdg-config/fontconfig:ro"
|
||||
# "xdg-data/fonts:ro"
|
||||
# If user font is set, it is required to access /nix/store
|
||||
# since flatpak apps cannot read ~/.config/fontconfig/conf.d/*
|
||||
# TODO: This is a bad practice, trying to look for a better solution
|
||||
"/nix/store:ro"
|
||||
"xdg-data/fonts:ro"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
@ -44,5 +47,6 @@
|
|||
QT_IM_MODULE = "fcitx";
|
||||
};
|
||||
};
|
||||
"md.obsidian.Obsidian".Context.sockets = ["wayland"];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
13
nixcfgs/users/js0ny/packages/fonts.nix
Normal file
13
nixcfgs/users/js0ny/packages/fonts.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{pkgs, ...}: {
|
||||
fonts.fontconfig.enable = true;
|
||||
fonts.fontconfig = {
|
||||
defaultFonts = {
|
||||
monospace = [
|
||||
"Maple Mono NF"
|
||||
"JetBrainsMono Nerd Font"
|
||||
];
|
||||
serif = ["LXGW WenKai"];
|
||||
sansSerif = ["LXGW Neo XiHei"];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,5 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
{pkgs, ...}: {
|
||||
home.packages = with pkgs; [
|
||||
kitty
|
||||
ghostty
|
||||
|
|
@ -33,5 +32,6 @@
|
|||
proton-pass
|
||||
protonmail-bridge-gui
|
||||
mpv
|
||||
neovim-qt
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue