Add custom font management and multimedia video editing support

Enhanced the configuration by introducing a custom font management system, allowing for the installation of additional fonts. Updated multimedia settings to include video editing applications, enabling users to manage multimedia and video editing packages more effectively. Removed the deprecated fonts module to streamline the configuration.
This commit is contained in:
Danilo Reyes
2026-01-16 13:28:18 -06:00
parent cbe7c25812
commit cceb4da041
6 changed files with 74 additions and 70 deletions

View File

@@ -72,6 +72,7 @@
};
nixpkgs.config = {
allowUnfree = true;
allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "corefonts" ];
permittedInsecurePackages = [
"aspnetcore-runtime-wrapped-6.0.36"
"aspnetcore-runtime-6.0.36"
@@ -165,6 +166,39 @@
};
};
};
fonts.fontconfig.enable = true;
fonts = {
fontconfig.enable = true;
packages = let
customFonts = pkgs.stdenvNoCC.mkDerivation {
name = "custom-fonts";
src = inputs.fonts;
installPhase = ''
mkdir -p $out/share/fonts
find $src -type f \( \
-name "*.ttf" -o \
-name "*.otf" -o \
-name "*.woff" -o \
-name "*.woff2" \
\) -exec cp {} $out/share/fonts/ \;
'';
};
in
builtins.attrValues {
inherit customFonts;
inherit (pkgs)
symbola
comic-neue
cascadia-code
corefonts
;
inherit (pkgs.nerd-fonts)
caskaydia-cove
open-dyslexic
comic-shanns-mono
iosevka
agave
;
};
};
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
}

View File

@@ -9,10 +9,10 @@
apps = {
art.enable = true;
art.users = "bearded_dragonn";
fonts.enable = true;
fonts.users = "bearded_dragonn";
gaming.enable = true;
gaming.users = "bearded_dragonn";
multimedia.videoEditing.enable = true;
multimedia.videoEditing.users = "bearded_dragonn";
};
dev = {
nix.enable = true;
@@ -50,18 +50,12 @@
hashedPasswordFile = config.sops.secrets.derek-password.path;
packages = builtins.attrValues {
inherit (pkgs)
davinci-resolve
shotcut
pitivi
bottles
vscode
nextcloud-client
firefox
warp
;
inherit (pkgs.kdePackages)
kdenlive
;
};
extraGroups = [
"audio"