Compare commits

...

2 Commits

Author SHA1 Message Date
ebaaabc90b rofi color scheme 2023-11-18 23:30:53 +01:00
9042ed10af sax2 nerdfont 2023-11-18 23:30:05 +01:00
4 changed files with 30 additions and 18 deletions

View File

@ -60,5 +60,7 @@
}; };
keyboardLayouts.fox = ./shared/fox.xkb; keyboardLayouts.fox = ./shared/fox.xkb;
fonts.sax2nf = import ./shared/sax2nf.nix { pkgs = nixpkgs.legacyPackages.x86_64-linux; };
}; };
} }

View File

@ -1,7 +1,7 @@
{ pkgs, cornelis, cornelis-vim, agda, ... }: { pkgs, cornelis, cornelis-vim, agda, ... }:
let username = "rachel"; let username = "rachel";
homeDir = "/home/${username}"; homeDir = "/home/${username}";
SAX2 = import ../shared/sax2.nix { inherit pkgs; }; SAX2NF = import ../shared/sax2nf.nix { inherit pkgs; };
hpkgs = pkgs.haskellPackages; hpkgs = pkgs.haskellPackages;
hls_wrapper = pkgs.writeScript "hls" '' hls_wrapper = pkgs.writeScript "hls" ''
export PATH="${hpkgs.haskell-language-server}/bin:$PATH" export PATH="${hpkgs.haskell-language-server}/bin:$PATH"
@ -64,7 +64,7 @@ in
obs-studio obs-studio
file file
gimp gimp
SAX2 SAX2NF
twemoji-color-font twemoji-color-font
bat bat
steam steam
@ -132,7 +132,7 @@ in
rofi = { rofi = {
enable = true; enable = true;
theme = "solarized"; theme = "gruvbox-dark-soft";
}; };
git = { git = {
@ -327,7 +327,7 @@ in
draw_bold_text_with_bright_colors = false; draw_bold_text_with_bright_colors = false;
scrolling.history = 0; scrolling.history = 0;
font = { font = {
normal.family = "SAX2"; normal.family = "SAX2 Nerd Font";
size = 11; size = 11;
}; };
colors = { colors = {

View File

@ -1,14 +0,0 @@
{ pkgs, ... }:
pkgs.fetchurl {
name = "SAX2";
url = "https://abrudz.github.io/SAX2/SAX2.ttf";
sha256 = "sha256-DgvDWXO2fnKZNu9EvQOq8GNMTU3PUdp85+/0ZHdRXZc=";
recursiveHash = true;
downloadToTemp = true;
postFetch = ''
mkdir -p "$out/share/fonts/truetype"
mv "$downloadedFile" "$out/share/fonts/truetype/SAX2.ttf"
'';
}

24
shared/sax2nf.nix Normal file
View File

@ -0,0 +1,24 @@
{ pkgs, ... }:
pkgs.stdenv.mkDerivation {
name = "SAX2";
sax2 = (pkgs.fetchurl {
url = "https://abrudz.github.io/SAX2/SAX2.ttf";
sha256 = "sha256-t7Se4Hkojznrret/gb1y1uVnecENTuKtQv11ygafMPY=";
});
patcher = (pkgs.fetchzip {
url = "https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.2/FontPatcher.zip";
sha256 = "sha256-ZJpF/Q5lfcW3srb2NbJk+/QEuwaFjdzboa+rl9L7GGE=";
stripRoot = false;
});
dontUnpack = true;
nativeBuildInputs = [ pkgs.fontforge (pkgs.python3.withPackages (p: [ p.fontforge ])) ];
buildPhase = ''
mkdir -p $out/share/fonts/truetype
python3 -OO $patcher/font-patcher --complete --careful --custom ${pkgs.fira-code}/share/fonts/truetype/FiraCode-VF.ttf -out $out/share/fonts/truetype $sax2
'';
}