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

add /overlays

+27 -31
+15
modules/home-manager/nixcfg.nix
··· 3 3 lib, 4 4 config, 5 5 osConfig, 6 + outputs, 6 7 ... 7 8 }: 8 9 with lib; let ··· 56 57 config = { 57 58 allowUnfree = true; 58 59 }; 60 + overlays = [ 61 + # Add overlays your own flake exports (from overlays and pkgs dir): 62 + # outputs.overlays.additions 63 + outputs.overlays.modifications 64 + 65 + # You can also add overlays exported from other flakes: 66 + # neovim-nightly-overlay.overlays.default 67 + # inputs.nixpkgs-wayland.overlay # We only want to use these overlays in Wayland 68 + 69 + # Or define it inline, for example: 70 + # (final: prev: { 71 + # hi = final.hello.overrideAttrs (oldAttrs: { 72 + # patches = [ ./change-hello-to-hi.patch ]; 73 + ]; 59 74 }; 60 75 nix = { 61 76 registry = osConfig.nix.registry;
+2 -1
modules/nixos/nixcfg.nix
··· 2 2 inputs, 3 3 lib, 4 4 config, 5 + outputs, 5 6 ... 6 7 }: 7 8 with lib; let ··· 48 49 overlays = [ 49 50 # Add overlays your own flake exports (from overlays and pkgs dir): 50 51 # outputs.overlays.additions 51 - # outputs.overlays.modifications 52 + outputs.overlays.modifications 52 53 53 54 # You can also add overlays exported from other flakes: 54 55 # neovim-nightly-overlay.overlays.default
+10 -30
overlays/default.nix
··· 1 - # This file defines overlays 2 - { 3 - # inputs, 4 - ... 5 - }: { 6 - # This one brings our custom packages from the 'pkgs' directory 1 + {...}: { 7 2 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 3 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 4 + # Hotfixes ffmpeg ; https://github.com/NixOS/nixpkgs/pull/353198 5 + # ffmpeg_7-full = prev.ffmpeg_7-full.override { 6 + # withXevd = false; 7 + # withXeve = false; 8 + # }; 9 + ffmpeg_7-full = prev.ffmpeg_7; 10 + # Hotfixes #353119 ; "Build failure: _7zz" ; https://github.com/NixOS/nixpkgs/issues/353119 11 + # Resolved by #353272 ; "_7zz: disable UASM properly" ; https://github.com/NixOS/nixpkgs/pull/353272 12 + _7zz = prev._7zz.override { useUasm = true; }; 24 13 }; 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 14 }