Added overlay

modified:   flake.nix
	new file:   hosts/nixos/overlay.nix
This commit is contained in:
2025-07-16 16:18:37 +10:00
parent 3ab72dc590
commit d2785f4d7b
2 changed files with 11 additions and 14 deletions

View File

@@ -11,20 +11,7 @@
}; };
outputs = { self, nixpkgs, nixos-conf-editor, home-manager, ... } @ inputs: outputs = { self, nixpkgs, nixos-conf-editor, home-manager, ... } @ inputs:
let system = "x86_64-linux"; let system = "x86_64-linux"; in {
# Import nixpkgs with our overlay applied
pkgs = import nixpkgs {
inherit system;
overlays = [
# Your dvdauthor patch overlay
(final: prev: {
dvdauthor = prev.dvdauthor.overrideAttrs (old: {
nativeBuildInputs = (old.nativeBuildInputs or []) ++ [ prev.gettext ];
});
})
];
};
in {
nixosConfigurations = { nixosConfigurations = {
# automatically use each host folder by name # automatically use each host folder by name
nixos = nixpkgs.lib.nixosSystem { nixos = nixpkgs.lib.nixosSystem {
@@ -36,7 +23,9 @@
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
home-manager.users.nixos = import ./hosts/nixos/home.nix; home-manager.users.nixos = import ./hosts/nixos/home.nix;
} }
./overlay.nix
]; ];
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs; };
}; };

8
hosts/nixos/overlay.nix Normal file
View File

@@ -0,0 +1,8 @@
{ config, pkgs, lib, ... }:
{
nixpkgs.overlays = [
(final: prev: {
dvdauthor = prev.dvdauthor.overrideAttrs (_: { dontBuild = true; });
})
];
}