mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 11:36:20 +00:00
update system
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
./fonts/fira-code.nix
|
||||
./fonts/noto-sans.nix
|
||||
./fonts/nerd-fonts.nix
|
||||
./fonts/open-dyslexic.nix
|
||||
|
||||
./hardware/hid-fanatecff.nix
|
||||
./hardware/astro-a50.nix
|
||||
|
||||
40
modules/nixos/fonts/open-dyslexic.nix
Normal file
40
modules/nixos/fonts/open-dyslexic.nix
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.fonts.open-dyslexic;
|
||||
in
|
||||
{
|
||||
options.fonts.open-dyslexic = {
|
||||
enable = mkEnableOption "Enable the OpenDyslexic font";
|
||||
default = mkOption {
|
||||
type = types.bool;
|
||||
description = "Make Noto Sans the default sans-serif font";
|
||||
default = false;
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
fonts = {
|
||||
packages =
|
||||
with pkgs;
|
||||
[
|
||||
open-dyslexic
|
||||
]
|
||||
++ (if (config.fonts.nerd-fonts.enable) then [ nerd-fonts.open-dyslexic ] else [ ]);
|
||||
fontconfig.defaultFonts = {
|
||||
sansSerif = mkIf cfg.default [
|
||||
(if (config.fonts.nerd-fonts.enable) then "OpenDyslexic Nerd Font" else "OpenDyslexic")
|
||||
];
|
||||
monospace = mkIf cfg.default [
|
||||
(if (config.fonts.nerd-fonts.enable) then "OpenDyslexicM Nerd Font" else "OpenDyslexicM")
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -35,7 +35,6 @@ in
|
||||
pkgs: with pkgs; [
|
||||
libgudev
|
||||
libvdpau
|
||||
libsoup_2_4
|
||||
];
|
||||
})
|
||||
rpcs3
|
||||
|
||||
Reference in New Issue
Block a user