Add Support for Unfree Packages with pkgs.unfree
parent
2effa9fbdc
commit
cc9d329d47
14
flake.nix
14
flake.nix
|
@ -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
|
||||||
|
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 {
|
nixosConfigurations.kcnhub = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
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
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue