There is an existing module. Existing manually written and linked files are replaced with usage of the module. This has the advantage that I don't need to know where to place the files and which format to use. Furthermore, the module will check whether I've typos in options and whether values match expected types.
40 lines
637 B
Nix
40 lines
637 B
Nix
{ pkgs }:
|
|
|
|
{
|
|
enable = true;
|
|
|
|
package = pkgs.nix;
|
|
|
|
settings = {
|
|
|
|
experimental-features = [
|
|
"nix-command"
|
|
"flakes"
|
|
];
|
|
|
|
substituters = [
|
|
"https://cache.nixos.org"
|
|
"https://fossar.cachix.org"
|
|
];
|
|
|
|
trusted-public-keys = "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= fossar.cachix.org-1:Zv6FuqIboeHPWQS7ysLCJ7UT7xExb4OE8c4LyGb5AsE=";
|
|
|
|
};
|
|
|
|
registry = {
|
|
|
|
customer-projects = {
|
|
from = {
|
|
id = "cp";
|
|
type = "indirect";
|
|
};
|
|
to = {
|
|
path = toString ./../../registries/customer-projects;
|
|
type = "path";
|
|
};
|
|
};
|
|
|
|
};
|
|
|
|
}
|