2022-12-04 13:45:43 +00:00
|
|
|
{
|
|
|
|
inputs,
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
2023-09-01 01:46:14 +01:00
|
|
|
}: let
|
|
|
|
inherit (lib.strings) optionalString versionAtLeast;
|
|
|
|
in {
|
2021-12-20 23:48:26 +00:00
|
|
|
nix = {
|
2022-12-04 13:45:43 +00:00
|
|
|
nixPath = ["nixpkgs=${inputs.nixpkgs}"];
|
|
|
|
extraOptions =
|
2023-09-01 01:46:14 +01:00
|
|
|
optionalString
|
|
|
|
(versionAtLeast config.nix.package.version "2.4") ''
|
2021-12-26 14:07:09 +00:00
|
|
|
experimental-features = nix-command flakes
|
|
|
|
'';
|
2022-12-04 13:45:43 +00:00
|
|
|
settings.trusted-users = ["root" "@wheel"];
|
2021-12-20 23:48:26 +00:00
|
|
|
};
|
|
|
|
nixpkgs = {
|
2023-06-03 17:11:29 +01:00
|
|
|
config = {
|
|
|
|
allowUnfree = true;
|
|
|
|
|
|
|
|
permittedInsecurePackages = [
|
|
|
|
];
|
|
|
|
};
|
2022-02-08 12:17:15 +00:00
|
|
|
overlays = [
|
|
|
|
(import ../../overlay)
|
2023-09-13 16:21:54 +01:00
|
|
|
|
|
|
|
inputs.vaultui.overlays.default
|
2023-09-08 13:39:59 +01:00
|
|
|
inputs.musicutil.overlays.default
|
|
|
|
inputs.gitlab_artifacts_sync.overlays.default
|
|
|
|
inputs.gitlab_archiver.overlays.default
|
|
|
|
inputs.piped-flake.overlays.default
|
2022-02-08 12:17:15 +00:00
|
|
|
];
|
2021-12-20 23:48:26 +00:00
|
|
|
};
|
2022-11-10 14:57:07 +00:00
|
|
|
environment.etc."nixpkgs-commit".text = inputs.nixpkgs-unstable.rev;
|
2021-12-20 23:48:26 +00:00
|
|
|
}
|