This commit is contained in:
biscuit
2025-05-21 10:51:10 -05:00
parent e862ce8f9b
commit 6ae2221007
4 changed files with 64 additions and 53 deletions
+16 -11
View File
@@ -1,17 +1,21 @@
{ {
description = description = "A flake giving access to fonts that I use, outside of nixpkgs.";
"A flake giving access to fonts that I use, outside of nixpkgs.";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils"; inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }: outputs = {
flake-utils.lib.eachDefaultSystem (system: self,
let pkgs = nixpkgs.legacyPackages.${system}; nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = nixpkgs.legacyPackages.${system};
in { in {
defaultPackage = pkgs.symlinkJoin { defaultPackage = pkgs.symlinkJoin {
name = "myfonts-0.1.4"; name = "myfonts-0.1.4";
paths = builtins.attrValues paths =
builtins.attrValues
self.packages.${system}; # Add font derivation names here self.packages.${system}; # Add font derivation names here
}; };
@@ -19,8 +23,7 @@
name = "gillsans-font"; name = "gillsans-font";
dontConfigue = true; dontConfigue = true;
src = pkgs.fetchzip { src = pkgs.fetchzip {
url = url = "https://freefontsvault.s3.amazonaws.com/2020/02/Gill-Sans-Font-Family.zip";
"https://freefontsvault.s3.amazonaws.com/2020/02/Gill-Sans-Font-Family.zip";
sha256 = "sha256-YcZUKzRskiqmEqVcbK/XL6ypsNMbY49qJYFG3yZVF78="; sha256 = "sha256-YcZUKzRskiqmEqVcbK/XL6ypsNMbY49qJYFG3yZVF78=";
stripRoot = false; stripRoot = false;
}; };
@@ -35,8 +38,7 @@
name = "palatino-font"; name = "palatino-font";
dontConfigue = true; dontConfigue = true;
src = pkgs.fetchzip { src = pkgs.fetchzip {
url = url = "https://www.dfonts.org/wp-content/uploads/fonts/Palatino.zip";
"https://www.dfonts.org/wp-content/uploads/fonts/Palatino.zip";
sha256 = "sha256-FBA8Lj2yJzrBQnazylwUwsFGbCBp1MJ1mdgifaYches="; sha256 = "sha256-FBA8Lj2yJzrBQnazylwUwsFGbCBp1MJ1mdgifaYches=";
stripRoot = false; stripRoot = false;
}; };
@@ -55,7 +57,10 @@
mkdir -p $out/share/fonts mkdir -p $out/share/fonts
cp -R $src/fonts/Monolisa $out/share/fonts/truetype cp -R $src/fonts/Monolisa $out/share/fonts/truetype
''; '';
meta = { description = "The Monolisa Font Family derivation."; }; meta = {
description = "The Monolisa Font Family derivation.";
licenses.free = false;
};
}; };
}); });
} }
+4 -1
View File
@@ -4,5 +4,8 @@
timezone = "America/Chicago"; timezone = "America/Chicago";
# VPN # VPN
vpn_enable = true; vpnEnable = true;
# Unfree Softwares
allowUnfree = true;
} }
+2 -2
View File
@@ -1,5 +1,5 @@
{ {
vpn_enable, vpnEnable,
lib, lib,
... ...
}: { }: {
@@ -19,7 +19,7 @@
../system/users.nix ../system/users.nix
../system/tools.nix ../system/tools.nix
] ]
++ lib.optionals (vpn_enable == true) [ ++ lib.optionals (vpnEnable == true) [
../system/vpn.nix ../system/vpn.nix
]; ];
} }
+3
View File
@@ -2,6 +2,7 @@
config, config,
lib, lib,
pkgs, pkgs,
allowUnfree,
... ...
}: { }: {
imports = [ imports = [
@@ -18,6 +19,8 @@
wl-clipboard wl-clipboard
]; ];
nixpkgs.config.allowUnfree = allowUnfree;
nix.settings.experimental-features = ["nix-command" "flakes"]; nix.settings.experimental-features = ["nix-command" "flakes"];
system.stateVersion = "25.05"; system.stateVersion = "25.05";
} }