feat: added derivations
This commit is contained in:
parent
8e23015029
commit
9c64f21bbc
4 changed files with 26 additions and 2 deletions
|
@ -27,6 +27,7 @@
|
|||
};
|
||||
in {
|
||||
options.alqueva.fonts = {
|
||||
enable = mkEnableOption "" // {description = "Whether you want to use this fonts module.";};
|
||||
sansSerif = mkFontOption "sans-serif" [pkgs.roboto] ["Roboto"];
|
||||
monospace = mkFontOption "monospace" [pkgs.roboto-mono] ["Roboto Mono"];
|
||||
serif = mkFontOption "serif" [pkgs.roboto-serif] ["Roboto Serif"];
|
||||
|
@ -37,7 +38,7 @@ in {
|
|||
description = "Extra font packages to be installed.";
|
||||
};
|
||||
};
|
||||
config = {
|
||||
config = lib.mkIf cfg.enable {
|
||||
fonts = {
|
||||
packages = builtins.concatLists [
|
||||
cfg.extraPackages
|
||||
|
|
|
@ -64,6 +64,7 @@
|
|||
extraPackages = [
|
||||
pkgs.nerdfonts
|
||||
];
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
basicTextColor = "#f2f4f8";
|
||||
};
|
||||
};
|
||||
fairfax = prev.callPackage ./derivations/fairfax.nix {};
|
||||
};
|
||||
perSystem = {
|
||||
pkgs,
|
||||
|
@ -20,7 +21,7 @@
|
|||
};
|
||||
|
||||
packages = {
|
||||
inherit (pkgs) i-found-my-sddm-theme;
|
||||
inherit (pkgs) i-found-my-sddm-theme fairfax;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
21
overlays/derivations/fairfax.nix
Normal file
21
overlays/derivations/fairfax.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
stdenvNoCC,
|
||||
fetchzip,
|
||||
lib,
|
||||
}:
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = "fairfaxHD";
|
||||
version = "20240601";
|
||||
src = lib.cleanSourceWith {
|
||||
filter = _path: type: type == "regular";
|
||||
src = fetchzip {
|
||||
url = "https://github.com/kreativekorp/open-relay/releases/download/2024-06-01/FairfaxHD.zip";
|
||||
hash = "sha256-kwdpWFOYhXt0HNqfWP3EeKYhJWgKsRs7cAbzHEasM80=";
|
||||
stripRoot = true;
|
||||
};
|
||||
};
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/fonts
|
||||
cp *.ttf $out/share/fonts
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue