My personal nix config files. Feel free to import flake.

add /overlays

+36
+2
flake.nix
··· 107 107 # # Default overlay 108 108 # overlays.default = final: prev: {}; 109 109 110 + overlays = import ./overlays {inherit inputs;}; 111 + 110 112 # # Nixos module, consumed by other flakes 111 113 # nixosModules."<name>" = {config, ...}: { 112 114 # options = {};
+34
overlays/default.nix
··· 1 + # This file defines overlays 2 + { 3 + # inputs, 4 + ... 5 + }: { 6 + # This one brings our custom packages from the 'pkgs' directory 7 + additions = final: _prev: import ../pkgs final.pkgs; 8 + 9 + # This one contains whatever you want to overlay 10 + # You can change versions, add patches, set compilation flags, anything really. 11 + # https://nixos.wiki/wiki/Overlays 12 + modifications = final: prev: { 13 + # example = prev.example.overrideAttrs (oldAttrs: rec { 14 + # ... 15 + # }); 16 + ffmpeg_7-full = prev.ffmpeg_7-full.override { 17 + # Required for handbrake 18 + # The latest xev release has broken the ffmpeg package until 7.1, or until the fix is merged in nixos-unstable. 19 + # https://github.com/NixOS/nixpkgs/pull/353198 20 + withXevd = false; 21 + withXeve = false; 22 + }; 23 + _7zz = prev._7zz.override { useUasm = true; }; # Hotfixes #353119 ; "Build failure: _7zz" ; https://github.com/NixOS/nixpkgs/issues/353119 ; Resolved by #353272 ; "_7zz: disable UASM properly" ; https://github.com/NixOS/nixpkgs/pull/353272 24 + }; 25 + 26 + # When applied, the unstable nixpkgs set (declared in the flake inputs) will 27 + # be accessible through 'pkgs.unstable' 28 + # unstable-packages = final: _prev: { 29 + # unstable = import inputs.nixpkgs-unstable { 30 + # system = final.system; 31 + # config.allowUnfree = true; 32 + # }; 33 + # }; 34 + }