Add Support for Unfree Packages with pkgs.unfree

David Crompton 2023-07-28 10:23:57 -04:00
parent 9948d46d50
commit 37c923b34e
1 changed files with 12 additions and 2 deletions

View File

@ -14,11 +14,21 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
}; };
outputs = { self, nixpkgs, sops-nix, nix-matlab }@attrs: { outputs = { self, nixpkgs, sops-nix, nix-matlab }@attrs: let
nixosConfigurations.kcnhub = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
unfree-overlay = final: prev: {
unfree = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
};
applyOverlays = overlays: ({...}:{ nixpkgs.overlays = overlays; });
in {
nixosConfigurations.kcnhub = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = attrs; specialArgs = attrs;
modules = [ modules = [
(applyOverlays [ unfree-overlay ])
./machines/kcnhub/configuration.nix ./machines/kcnhub/configuration.nix
sops-nix.nixosModules.sops sops-nix.nixosModules.sops
]; ];