Add new fonts

This commit is contained in:
Cyryl Płotnicki 2022-03-08 15:45:44 +00:00
parent d71427ae94
commit 555aa162c5
2 changed files with 50 additions and 18 deletions

View file

@ -1,12 +1,10 @@
{ config, pkgs, lib, inputs, nixpkgs-nixos-unstable-and-unfree, ... }: { config, pkgs, lib, inputs, nixpkgs-nixos-unstable-and-unfree, ... }: {
{ imports = [
imports = ./common-hardware.nix
[ ./common-services.nix
./common-hardware.nix ./security.nix
./common-services.nix ./syncthing.nix
./security.nix ];
./syncthing.nix
];
security.allowUserNamespaces = true; security.allowUserNamespaces = true;
@ -33,15 +31,26 @@
users.users.cyryl = { users.users.cyryl = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" "video" "scanner" "lp" "docker" "vboxusers" "adbusers" "libvirtd" "dialout" "wireshark" ]; extraGroups = [
"wheel"
"networkmanager"
"video"
"scanner"
"lp"
"docker"
"vboxusers"
"adbusers"
"libvirtd"
"dialout"
"wireshark"
];
shell = pkgs.zsh; shell = pkgs.zsh;
}; };
networking.nameservers = [ "91.239.100.100" "89.233.43.71" "1.1.1.1" "8.8.8.8" ]; networking.nameservers =
[ "91.239.100.100" "89.233.43.71" "1.1.1.1" "8.8.8.8" ];
networking.hosts = { networking.hosts = { "10.11.99.1" = [ "remarkable" ]; };
"10.11.99.1" = [ "remarkable" ];
};
programs.light.enable = true; programs.light.enable = true;
programs.adb.enable = true; programs.adb.enable = true;
@ -53,7 +62,29 @@
}; };
fonts.fontconfig.enable = true; fonts.fontconfig.enable = true;
fonts.fonts = with pkgs; [ powerline-fonts weather-icons material-icons source-code-pro fira-code noto-fonts-emoji emojione iosevka font-awesome nerdfonts ]; fonts.fonts = with pkgs; [
(fetchzip {
name = "berkeley-mono-fonts";
url = "file:///" + ./fonts.zip;
postFetch = ''
mkdir -p $out/share/fonts
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
'';
sha256 = "sha256-K6G82xaDnyzo6eAuW8hnbVZCoEyNYI4l0d5RPHkqNFM=";
})
emojione
fira-code
font-awesome
iosevka
material-icons
nerdfonts
noto-fonts-emoji
powerline-fonts
source-code-pro
weather-icons
];
nix = { nix = {
autoOptimiseStore = true; autoOptimiseStore = true;
@ -65,7 +96,5 @@
''; '';
}; };
system = { system = { stateVersion = "20.03"; };
stateVersion = "20.03";
};
} }

3
nixos/fonts.zip Normal file
View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a8d70eaef9239f27ed9c3b018bcdff67919434c8583670eea67eff28ce253672
size 623547