mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 00:33:00 +00:00
nix: dirty flatpak fonts
This commit is contained in:
parent
af7c7b49f2
commit
608cd05802
8 changed files with 67 additions and 23 deletions
|
|
@ -8,7 +8,7 @@ fork = true
|
|||
idle = true
|
||||
maximized = false
|
||||
# neovim-bin = "/opt/homebrew/bin/nvim"
|
||||
frame = "transparent"
|
||||
frame = "full"
|
||||
no-multigrid = false
|
||||
srgb = false
|
||||
tabs = true
|
||||
|
|
@ -19,8 +19,7 @@ wsl = false
|
|||
|
||||
[font]
|
||||
normal = [
|
||||
"Maple Mono NF CN",
|
||||
"Maple Mono NF",
|
||||
"Iosevka Nerd Font",
|
||||
"霞鹜文楷等宽",
|
||||
] # Will use the bundled Fira Code Nerd Font by default
|
||||
size = 14.0
|
||||
|
|
|
|||
|
|
@ -1,12 +1,5 @@
|
|||
# ~/.config/nixcfgs/hosts/zephyrus/default.nix
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
nix-flatpak,
|
||||
...
|
||||
}:
|
||||
{
|
||||
{config, ...}: {
|
||||
imports = [
|
||||
../../modules/nixos
|
||||
../../modules/nixos/host-machine.nix
|
||||
|
|
@ -22,7 +15,7 @@
|
|||
../../modules/nixos/obs-studio.nix
|
||||
../../modules/nixos/wine.nix
|
||||
../../modules/nixos/desktop/gnome.nix
|
||||
# ../../modules/nixos/desktop/niri.nix
|
||||
../../modules/nixos/desktop/niri.nix
|
||||
../../modules/nixos/desktop/kde.nix
|
||||
../../modules/nixos/display-manager/sddm.nix
|
||||
./hardware-configuration.nix
|
||||
|
|
@ -36,8 +29,10 @@
|
|||
boot.extraModulePackages = with config.boot.kernelPackages; [
|
||||
v4l2loopback
|
||||
];
|
||||
networking.modemmanager.enable = false;
|
||||
# Xilinx Artix-7 Basys 3
|
||||
services.udev.extraRules = ''
|
||||
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6010", MODE="0666", GROUP="wheel"
|
||||
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6010", MODE="0660", GROUP="dialout", SYMLINK+="basys3"
|
||||
'';
|
||||
system.stateVersion = "25.05";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,13 @@
|
|||
{
|
||||
xdg.mime.enable = true;
|
||||
xdg.mimeApps = {
|
||||
enable = true;
|
||||
defaultApplications = {
|
||||
"application/pdf" = "org.kde.okular.desktop";
|
||||
"text/plain" = "nvim-qt.desktop";
|
||||
"text/x-csrc" = "nvim-qt.desktop";
|
||||
"text/x-chdr" = "nvim-qt.desktop";
|
||||
"inode/directory" = "org.kde.dolphin.desktop";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
{pkgs, ...}: {
|
||||
home.packages = with pkgs.kdePackages; [
|
||||
yakuake
|
||||
home.packages = with pkgs; [
|
||||
kdePackages.yakuake
|
||||
krunner-vscodeprojects
|
||||
jetbrains-runner
|
||||
];
|
||||
programs.plasma = {
|
||||
enable = true;
|
||||
|
|
@ -28,6 +30,11 @@
|
|||
];
|
||||
};
|
||||
};
|
||||
shortcuts = {
|
||||
yakuake = {
|
||||
"toggle-window-state" = "Meta+`";
|
||||
};
|
||||
};
|
||||
input.touchpads = [
|
||||
{
|
||||
disableWhileTyping = true;
|
||||
|
|
@ -101,7 +108,7 @@
|
|||
"org.kde.plasma.marginsseparator"
|
||||
];
|
||||
opacity = "translucent";
|
||||
hiding = "dodgewindows";
|
||||
hiding = "none";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
|
|
|||
|
|
@ -4,13 +4,26 @@
|
|||
nix-flatpak,
|
||||
plasma-manager,
|
||||
...
|
||||
}:
|
||||
{
|
||||
}: let
|
||||
my-catppuccin-kde = pkgs.catppuccin-kde.override {
|
||||
flavour = [
|
||||
"mocha"
|
||||
"latte"
|
||||
];
|
||||
accents = ["pink"];
|
||||
winDecStyles = ["classic"];
|
||||
};
|
||||
my-catppuccin-gtk = pkgs.catppuccin-gtk.override {
|
||||
accents = ["pink"];
|
||||
variant = "mocha";
|
||||
};
|
||||
in {
|
||||
imports = [
|
||||
./default.nix
|
||||
./packages/cli.nix
|
||||
./packages/gui.nix
|
||||
./packages/flatpak.nix
|
||||
./packages/fonts.nix
|
||||
./programs/chromium.nix
|
||||
./programs/gnome.nix
|
||||
./programs/plasma.nix
|
||||
|
|
@ -37,5 +50,12 @@
|
|||
# ./flatpak.nix
|
||||
];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
catppuccin
|
||||
my-catppuccin-gtk
|
||||
my-catppuccin-kde
|
||||
catppuccin-fcitx5
|
||||
];
|
||||
|
||||
home.stateVersion = "25.05";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue