Extract font configuration into a mixin
This commit is contained in:
parent
561a30cde6
commit
24e2edfb8e
2 changed files with 33 additions and 27 deletions
|
@ -6,11 +6,11 @@
|
|||
}:
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
theme = import "${self}/lib/theme" { inherit pkgs; };
|
||||
|
||||
username = "opdavies";
|
||||
in
|
||||
{
|
||||
imports = [ ../../modules/mixins/fonts.nix ];
|
||||
|
||||
nixpkgs.config = {
|
||||
allowUnfree = true;
|
||||
|
||||
|
@ -214,31 +214,6 @@ in
|
|||
|
||||
users.defaultUserShell = "/etc/profiles/per-user/${username}/bin/zsh";
|
||||
|
||||
fonts = {
|
||||
fontconfig = {
|
||||
enable = true;
|
||||
defaultFonts = {
|
||||
monospace = [ theme.fonts.monospace.name ];
|
||||
};
|
||||
};
|
||||
|
||||
packages =
|
||||
with pkgs;
|
||||
[
|
||||
(nerdfonts.override {
|
||||
fonts = [
|
||||
"AnonymousPro"
|
||||
"FiraCode"
|
||||
"GeistMono"
|
||||
"IntelOneMono"
|
||||
"Iosevka"
|
||||
"JetBrainsMono"
|
||||
];
|
||||
})
|
||||
]
|
||||
++ [ theme.fonts.monospace.package ];
|
||||
};
|
||||
|
||||
zramSwap.enable = true;
|
||||
|
||||
nix = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue