35 lines
751 B
Nix
35 lines
751 B
Nix
{
|
|
inputs,
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib.strings) optionalString versionAtLeast;
|
|
in {
|
|
nix = {
|
|
nixPath = ["nixpkgs=${inputs.nixpkgs}"];
|
|
extraOptions =
|
|
optionalString
|
|
(versionAtLeast config.nix.package.version "2.4") ''
|
|
experimental-features = nix-command flakes
|
|
'';
|
|
settings.trusted-users = ["root" "@wheel"];
|
|
};
|
|
nixpkgs = {
|
|
config = {
|
|
allowUnfree = true;
|
|
|
|
permittedInsecurePackages = [
|
|
];
|
|
};
|
|
overlays = [
|
|
(import ../../overlay)
|
|
inputs.musicutil.overlay
|
|
inputs.gitlab_artifacts_sync.overlay
|
|
inputs.gitlab_archiver.overlay
|
|
inputs.deploy-rs.overlay
|
|
];
|
|
};
|
|
environment.etc."nixpkgs-commit".text = inputs.nixpkgs-unstable.rev;
|
|
}
|