| 19 Oct 2021 |
David Arnold (blaggacao) | * ...
staging = let
lhs = import ./base/default.nix {
namespace = "staging";
selfRev = stableSelfRev;
domain = domain;
};
in data-merge.merge (enablePromtail lhs) {
backend.Job.Constraints =
data-merge.append [ (constrainToAwsInstance "i-061eb00a6") ];
databaseHA1.Job.Constraints =
data-merge.append [ (constrainToAwsInstance "i-061eb00a6") ];
databaseHA2.Job.Constraints =
data-merge.append [ (constrainToAwsInstance "i-061eb00a6") ];
databaseHA3.Job.Constraints =
data-merge.append [ (constrainToAwsInstance "i-061eb00a6") ];
rabbitHA1.Job.Constraints =
data-merge.append [ (constrainToAwsInstance "i-061eb00a6") ];
};
# External need a tcp route to the amqp
rabbitHA1.Job.TaskGroups = data-merge.update [ 0 ] [{
Services = data-merge.update [ 0 ] [{
Tags = data-merge.append [
"traefik.tcp.routers.erc20-testnet-stable-rabbit.rule=HostSNI(`*`)"
"traefik.tcp.routers.erc20-testnet-stable-rabbit.entrypoints=amqp"
];
}];
}];
...
| 14:49:08 |
David Arnold (blaggacao) | (nomad jobs but should look pretty analog for k8s manifests) | 14:49:43 |
David Arnold (blaggacao) | Ah you mean for the crossing point of marginal benefits? | 14:50:21 |
David Arnold (blaggacao) | It's an individual judgment but I'd say a distructive cross repo mkForce/mkOverride is relatively nasty. | 14:51:21 |
ultranix | finally trying out deploy-rs today | 16:09:38 |
ultranix | been using nixus for almost a year | 16:09:53 |
mars | I'm waiting for Nix to stop churning so I can try out the template. I noticed a few things:
-
The instructions on the devos website for getting started don't work because the example nix-shell invocation refers to the master branch, but devos has no master branch and its default branch is main
-
Even though I added nrdxp's cachix instance, I had to build Nix, deploy-rs, and nvfetcher from source, which is taking a long time (mostly just for Nix itself, I think)
| 16:16:36 |
@kraftnix:matrix.org | the need to build nix, deploy-rs and nvfetcher is definitely and issue that we should resolve if possible
its one of the reasons i dont build devos on my laptop anymore | 16:19:52 |
mars | yeah this is building on a Dell ultrabook, so the aluminum case is turning orange and the world's smallest fans are trying to put on an experimental harsh noise concert | 16:21:15 |
mars | lively and avant-garde, but not the smoothest OOTB experience ;) | 16:22:25 |
mars | why does devos include a custom build of Nix itself? | 16:22:43 |
ultranix | In reply to @kraftnix:matrix.org the need to build nix, deploy-rs and nvfetcher is definitely and issue that we should resolve if possible
its one of the reasons i dont build devos on my laptop anymore why do you need to build them? | 16:33:34 |
@kraftnix:matrix.org | good question, i haven't looked into _why_ i need to build them, but every so often i do need to do a full build of nix, dprs, and nvfetcher. | 16:36:27 |
mars | is the secrets mgmt stuff for devos just whatever is built into deploy-rs, or is it your own thing? | 16:39:53 |
@kraftnix:matrix.org | agenix is used for secretd management. | 16:40:42 |
mars | ah OK cool | 16:40:54 |
@kraftnix:matrix.org | * agenix is used for secretd management. https://devos.divnix.com/secrets.html | 16:41:05 |
mars | profiles are just modules that don't define any new config options? | 16:41:06 |
@kraftnix:matrix.org | have a read through the docs, it shoulf answer many of these questions :) | 16:41:34 |
mars | oh God the Nixpkgs documentation uses definition the opposite of the way that I meant it | 16:43:34 |
mars | what's the point of the conceptual distinction between suites and profiles? don't profiles that import other profiles essentially retain all the same properties as other profiles? | 16:48:58 |
ultranix | how is deploy-rs set up to read home-manager.shared-modules | 16:50:18 |
mars | In reply to @ultranix:matrix.org how is deploy-rs set up to read home-manager.shared-modules deploy-rs doesn't have to do anything; it's just deploying a NixOS host flake
digga uses fup's hostDefaults.modules to add home-manager to all the host flakes | 16:54:23 |
mars | the part where it passes the modules arg to home-manager is in fup-adapter.nix | 16:56:44 |
mars | did i miss anything? | 17:00:11 |
mars | what does setting
nixConfig.extra-experimental-features = "nix-command flakes ca-references";
at the top of flake.nix actually achieve? won't Nix not actually read the flake anyway, it those features are not enabled? | 17:24:24 |
ultranix | adds hem to /etc/nix/nix.conf | 17:28:20 |
ultranix | * adds them to /etc/nix/nix.conf | 17:28:26 |
ultranix | flakes wont be enabled otherwise | 17:28:42 |
mars | I guess I'm just wondering why the top-level thing is being used instead of having that live down inside a NixOS module somewhere | 17:30:40 |