font
This commit is contained in:
parent
e75aff55ba
commit
414d3b190e
2 changed files with 37 additions and 1 deletions
25
modules/firefox-nixos.nix
Normal file
25
modules/firefox-nixos.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
{ ... }:
|
||||||
|
let
|
||||||
|
in
|
||||||
|
{
|
||||||
|
programs.firefox = {
|
||||||
|
ExtensionSettings = {
|
||||||
|
"uBlock0@raymondhill.net" = {
|
||||||
|
install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
|
||||||
|
installation_mode = "force_installed";
|
||||||
|
};
|
||||||
|
"{446900e4-71c2-419f-a6a7-df9c091e268b}" = {
|
||||||
|
install_url = "https://addons.mozilla.org/firefox/downloads/latest/bitwarden-password-manager/latest.xpi";
|
||||||
|
installation_mode = "force_installed";
|
||||||
|
};
|
||||||
|
"jid1-MnnxcxisBPnSXQ@jetpack" = {
|
||||||
|
install_url = "https://addons.mozilla.org/firefox/downloads/latest/privacy-badger17/latest.xpi";
|
||||||
|
installation_mode = "force_installed";
|
||||||
|
};
|
||||||
|
"extension@tabliss.io" = {
|
||||||
|
install_url = "https://addons.mozilla.org/firefox/downloads/file/3940751/tabliss-2.6.0.xpi";
|
||||||
|
installation_mode = "force_installed";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -1,4 +1,15 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
let
|
||||||
|
# Fetch the JSON file
|
||||||
|
fontsJson = builtins.fetchurl {
|
||||||
|
url = "https://raw.githubusercontent.com/NixOS/nixpkgs/nixos-unstable/pkgs/data/fonts/nerd-fonts/manifests/fonts.json";
|
||||||
|
sha256 = "1kdmk4ayckixxckxbik9jg4fdqqgm7s5x1lvzd95v1g09bhn33wg";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Parse the JSON and extract package names
|
||||||
|
fonts = builtins.fromJSON fontsJson;
|
||||||
|
packageNames = map (font: font.package) fonts;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
fonts.packages =
|
fonts.packages =
|
||||||
with pkgs;
|
with pkgs;
|
||||||
|
|
@ -7,5 +18,5 @@
|
||||||
comic-mono
|
comic-mono
|
||||||
nerdfonts
|
nerdfonts
|
||||||
]
|
]
|
||||||
++ builtins.filter lib.attrsets.isDerivation (builtins.attrValues pkgs.nerdfonts);
|
++ packageNames;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue