| 11 Feb 2022 |
Winter (she/her) | In reply to @zhaofeng:zhaofeng.li Import From Derivation is when you do import (some derivation) to use the results of a derivation during evaluation, meaning that the normally platform-agnostic evaluation process now requires building a derivation which is platform-specific. In order to build foreign derivations for IFD using configured builders, I normally pass --options builders to nix-instantiate. i know what IFD is - but i'm confused on where IFDs are used in Colmena | 21:22:12 |
Winter (she/her) | In reply to @zhaofeng:zhaofeng.li Yes indeed, if the user requests this check by setting deployment.replaceUnknownProfiles = false; (it defaults to true) then it expects the previous profile to be in the deployer's store. got it, thanks | 21:22:17 |
Linux Hackerman | In reply to @winterqt:nixos.dev i know what IFD is - but i'm confused on where IFDs are used in Colmena I don't think it is unless your deployment expression uses it. | 21:26:58 |
Zhaofeng Li | In reply to @winterqt:nixos.dev i know what IFD is - but i'm confused on where IFDs are used in Colmena No, it isn't used in Colmena, but user configurations may have IFD. | 21:27:05 |
Zhaofeng Li | And stuff like mobile-nixos uses IFD as well | 21:27:32 |
| 12 Feb 2022 |
@github:maunium.net | [zhaofengli/colmena] lheckemann closed
issue
#53: Cannot deploy to a host without internet
| 09:19:46 |
| grw00 joined the room. | 23:47:26 |
| 13 Feb 2022 |
grw00 | @buckley310:matrix.org: hey, your config looks great, i will try to upgrade my "legacy" niv+morph config to copy yours. one thing i can't see is how i actually use colmena to run a deploy.. any hints? :) | 10:47:20 |
Linux Hackerman | grw00: please don't call stable interfaces legacy, flakes is not stable by any means. | 12:23:03 |
Linux Hackerman | grw00: that said, colmena apply is the command for deploying. | 12:23:17 |
grw00 | i meant legacy in sense of.. hacked together config i have used for some years, not non-flake | 12:27:28 |
grw00 | anyway i think in the repo i refer to it's not so simple as colmena apply - error: Flake must define outputs.colmena | 12:29:01 |
@schnecfk:ruhr-uni-bochum.de | In reply to @grw00:matrix.org anyway i think in the repo i refer to it's not so simple as colmena apply - error: Flake must define outputs.colmena Do you want to use a "shim" to populate outputs.colmena from outputs.nixosConfigurations? | 13:31:39 |
@schnecfk:ruhr-uni-bochum.de | (Oh, and are you on nix 2.6, 2.4 or older?) | 13:32:19 |
grw00 | 2.6 | 13:41:31 |
grw00 | In reply to @schnecfk:ruhr-uni-bochum.de Do you want to use a "shim" to populate outputs.colmena from outputs.nixosConfigurations? yeah i thought maybe i had to do this, wasn't sure if it was necessary and i just didnt use right command | 13:42:10 |
@schnecfk:ruhr-uni-bochum.de | iirc Buckley changed the approach for the shim, while I found the following solution. In the flake.nix, I populate colmena from nixosConfigurations.
colmena = {
meta = {
description = "My personal machines";
nixpkgs = import nixpkgs {
system = "x86_64-linux";
overlays = [ nur.overlay ];
};
};
} // builtins.mapAttrs (name: value: {
nixpkgs.system = value.config.nixpkgs.system;
imports = value._module.args.modules;
}) (self.nixosConfigurations);
But to have the deployment options available (and not conflicting with colmena), I had to add:
extraModules = [ colmena.nixosModules.deploymentOptions ];
in the nixpkgs.lib.nixosSystem call
| 13:44:22 |
@schnecfk:ruhr-uni-bochum.de | extraModules is not part of value._module.args.modules, so you retain the ability to nixos-rebuild --flake .#hostname build, while also being able to deploy with colmena | 13:45:16 |
@schnecfk:ruhr-uni-bochum.de | * iirc Buckley changed the approach for the shim, while I found the following solution. In the flake.nix, I populate colmena from nixosConfigurations.
colmena = {
meta = {
description = "My personal machines";
nixpkgs = import nixpkgs {
system = "x86_64-linux";
overlays = [ nur.overlay ];
};
};
} // builtins.mapAttrs (name: value: {
nixpkgs.system = value.config.nixpkgs.system;
imports = value._module.args.modules;
}) (self.nixosConfigurations);
But to have the deployment options available (and not conflicting with colmena), I had to add this (note that you'd typically use the argument modules):
extraModules = [ colmena.nixosModules.deploymentOptions ];
in the nixpkgs.lib.nixosSystem call
| 13:45:44 |
grw00 | perfect- thanks ! | 13:56:59 |
| 14 Feb 2022 |
| heph joined the room. | 20:14:58 |
| 15 Feb 2022 |
| @finn:sunbutt.faith joined the room. | 20:41:24 |
| @finn:sunbutt.faith left the room. | 20:41:33 |
| 16 Feb 2022 |
@github:maunium.net | [zhaofengli/colmena] zhaofengli synchronize
pull request
#58: streaming evaluator: respect eval-nodes-limit
| 09:10:45 |
@github:maunium.net | [zhaofengli/colmena] zhaofengli merged
pull request
#58: streaming evaluator: respect eval-nodes-limit
| 09:10:54 |
@github:maunium.net | [zhaofengli/colmena] zhaofengli merged
pull request
#51: eval.nix: Add "${name}-key.service" units for keys
| 18:23:29 |
@github:maunium.net | [zhaofengli/colmena] zhaofengli closed
issue
#48: Add `${name}-key.service` unit files for `deployment.keys` entries
| 18:23:30 |
| 18 Feb 2022 |
| Chinchilla Optional changed their display name from Chuck Winter to Chuck Winter (vi/vim). | 04:12:20 |
| Chinchilla Optional changed their display name from Chuck Winter (vi/vim) to Chuck Winter. | 04:20:45 |
| 19 Feb 2022 |
@github:maunium.net | [zhaofengli/colmena] lheckemann opened
issue
#59: add --no-substitute option
Nix itself accepts the option --no-substitute, while colmena's similar option is called --no-substitutes. This is unnecessarily confusing, and renaming the option would resolve this.
| 16:32:57 |