АБ
хочу один конфиг иметь, но передавать в него опции для деплоя на прод или стейджинг там.
Как это делать?
Size: a a a
АБ
АБ
mkServerFor = deploy: import <nixpkgs/nixos/lib/eval-config.nix> {
system = "x86_64-linux";
modules = [ (import ./configuration.nix) ];
specialArgs = { inherit deploy; };
};
АБ
mkServerFor "production"
АБ
{ pkgs, lib, config, deploy, ... }:
{
networking.hostName = deploy;
}
АБ
VY
builder for '/nix/store/h1lpml7lg0n1hr16k9zzsqiw1nwbp7s2-hint-0.9.0.3-lib-hint.drv' failed with exit code 1
cannot build derivation '/nix/store/05hm2a7w6zz3f29pkwrg3xvx8fgxbncl-ghc-shell-for-haskbot-config.drv': 1 dependencies couldn't be built
error: build of '/nix/store/05hm2a7w6zz3f29pkwrg3xvx8fgxbncl-ghc-shell-for-haskbot-config.drv', '/nix/store/5yqzgvy57dn1zzwmf5msrd23myw8rh6b-hoogle-local-0.1.drv', '/nix/store/qbxgg2pgg2m6yazi76y3wgp1kca7vfy2-ghc-shell-for-haskbot-ghc-8.8.3-env.drv' failed
VY
failed with exit code 1
и всё(VY
VY
VY
terminfo
Error:https://github.com/input-output-hk/haskell.nix/issues?q=is%3Aissue+is%3Aopen+terminfo
The following packages are broken because other packages they depend on are missing. These broken packages must be rebuilt before they can be used.
installed package ghc-8.8.3 is broken due to missing package terminfo-0.4.1.4
VY
LO
{ pkgs, lib, config, deploy, ... }:
{
networking.hostName = deploy;
}
LO
LO
LO
LO
АБ