mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-10 23:00:39 +02:00
refactor: move folders to modules
This commit is contained in:
parent
8643cd718a
commit
ffb1d41d8c
14 changed files with 64 additions and 2 deletions
|
@ -8,8 +8,9 @@
|
||||||
nixos-hardware.common-gpu-intel
|
nixos-hardware.common-gpu-intel
|
||||||
nixos-hardware.common-pc-laptop
|
nixos-hardware.common-pc-laptop
|
||||||
nixos-hardware.common-pc-laptop-ssd
|
nixos-hardware.common-pc-laptop-ssd
|
||||||
../../core
|
|
||||||
../../dev
|
../../modules/core
|
||||||
|
../../modules/dev
|
||||||
|
|
||||||
../../modules/efi.nix
|
../../modules/efi.nix
|
||||||
../../modules/laptop.nix
|
../../modules/laptop.nix
|
||||||
|
|
11
modules/graphical/default.nix
Normal file
11
modules/graphical/default.nix
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{pkgs, ...}: {
|
||||||
|
imports = [
|
||||||
|
./fonts.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
xdg.portal = {
|
||||||
|
enable = true;
|
||||||
|
wlr.enable = true;
|
||||||
|
extraPortals = with pkgs; [xdg-desktop-portal-gtk];
|
||||||
|
};
|
||||||
|
}
|
50
modules/graphical/fonts.nix
Normal file
50
modules/graphical/fonts.nix
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
{pkgs, ...}: {
|
||||||
|
fonts = {
|
||||||
|
enableDefaultFonts = false;
|
||||||
|
enableGhostscriptFonts = false;
|
||||||
|
fontDir.enable = false;
|
||||||
|
fontconfig = {
|
||||||
|
defaultFonts = {
|
||||||
|
sansSerif = ["IBM Plex Sans"];
|
||||||
|
serif = ["IBM Plex Sans"];
|
||||||
|
monospace = ["Hack Nerd Font"];
|
||||||
|
emoji = ["Noto Color Emoji"];
|
||||||
|
};
|
||||||
|
localConf = ''
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
||||||
|
<fontconfig>
|
||||||
|
<alias binding="weak">
|
||||||
|
<family>monospace</family>
|
||||||
|
<prefer>
|
||||||
|
<family>emoji</family>
|
||||||
|
</prefer>
|
||||||
|
</alias>
|
||||||
|
<alias binding="weak">
|
||||||
|
<family>sans-serif</family>
|
||||||
|
<prefer>
|
||||||
|
<family>emoji</family>
|
||||||
|
</prefer>
|
||||||
|
</alias>
|
||||||
|
<alias binding="weak">
|
||||||
|
<family>serif</family>
|
||||||
|
<prefer>
|
||||||
|
<family>emoji</family>
|
||||||
|
</prefer>
|
||||||
|
</alias>
|
||||||
|
</fontconfig>
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
fonts = with pkgs; [
|
||||||
|
(nerdfonts.override {fonts = ["Hack"];})
|
||||||
|
ibm-plex
|
||||||
|
dejavu_fonts
|
||||||
|
unifont
|
||||||
|
noto-fonts
|
||||||
|
noto-fonts-cjk-sans
|
||||||
|
noto-fonts-cjk-serif
|
||||||
|
noto-fonts-emoji
|
||||||
|
noto-fonts-extra
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue