before deadnix
This commit is contained in:
parent
414d3b190e
commit
44d708329a
3 changed files with 26 additions and 23 deletions
41
flake.nix
41
flake.nix
|
|
@ -35,23 +35,24 @@
|
||||||
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
|
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
inputs@{ self
|
inputs@{
|
||||||
, nixpkgs
|
self,
|
||||||
, c3d2-user-module
|
nixpkgs,
|
||||||
, home-manager
|
c3d2-user-module,
|
||||||
, niri
|
home-manager,
|
||||||
, nixos-hardware
|
niri,
|
||||||
, treefmt-nix
|
nixos-hardware,
|
||||||
, determinate
|
treefmt-nix,
|
||||||
, nix-index-db
|
determinate,
|
||||||
, quickshell
|
nix-index-db,
|
||||||
, stylix
|
quickshell,
|
||||||
, comin
|
stylix,
|
||||||
, firefox-addons
|
comin,
|
||||||
,
|
firefox-addons,
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
|
@ -138,11 +139,12 @@
|
||||||
home-manager.backupFileExtension = "backup";
|
home-manager.backupFileExtension = "backup";
|
||||||
home-manager.extraSpecialArgs = { inherit inputs; };
|
home-manager.extraSpecialArgs = { inherit inputs; };
|
||||||
home-manager.users.lucy =
|
home-manager.users.lucy =
|
||||||
{ config
|
{
|
||||||
, pkgs
|
config,
|
||||||
, lib
|
pkgs,
|
||||||
, inputs
|
lib,
|
||||||
, ...
|
inputs,
|
||||||
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
|
@ -179,6 +181,7 @@
|
||||||
./modules/comin.nix
|
./modules/comin.nix
|
||||||
stylix.nixosModules.stylix
|
stylix.nixosModules.stylix
|
||||||
./modules/stylix.nix
|
./modules/stylix.nix
|
||||||
|
./modules/firefox-nixos.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
ExtensionSettings = {
|
policies.ExtensionSettings = {
|
||||||
"uBlock0@raymondhill.net" = {
|
"uBlock0@raymondhill.net" = {
|
||||||
install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
|
install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
|
||||||
installation_mode = "force_installed";
|
installation_mode = "force_installed";
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
let
|
let
|
||||||
# Fetch the JSON file
|
# Fetch the JSON file and read its content
|
||||||
fontsJson = builtins.fetchurl {
|
fontsJson = builtins.fetchurl {
|
||||||
url = "https://raw.githubusercontent.com/NixOS/nixpkgs/nixos-unstable/pkgs/data/fonts/nerd-fonts/manifests/fonts.json";
|
url = "https://raw.githubusercontent.com/NixOS/nixpkgs/nixos-unstable/pkgs/data/fonts/nerd-fonts/manifests/fonts.json";
|
||||||
sha256 = "1kdmk4ayckixxckxbik9jg4fdqqgm7s5x1lvzd95v1g09bhn33wg";
|
sha256 = "1kdmk4ayckixxckxbik9jg4fdqqgm7s5x1lvzd95v1g09bhn33wg";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Parse the JSON and extract package names
|
# Parse the JSON and extract package names
|
||||||
fonts = builtins.fromJSON fontsJson;
|
fonts = builtins.fromJSON (builtins.readFile fontsJson);
|
||||||
packageNames = map (font: font.package) fonts;
|
packageNames = map (font: font.package) fonts;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
@ -18,5 +18,5 @@ in
|
||||||
comic-mono
|
comic-mono
|
||||||
nerdfonts
|
nerdfonts
|
||||||
]
|
]
|
||||||
++ packageNames;
|
++ builtins.filter lib.attrsets.isDerivation (builtins.attrValues pkgs.nerd-fonts);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue