!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

265 Members
A simple, stateless NixOS deployment tool - https://github.com/zhaofengli/colmena91 Servers

Load older messages


SenderMessageTime
28 Nov 2024
@davsanchez_:matrix.orgDavid Sánchez

I think it’s this issue that has been fixed, but I think a new version of colmena including it hasn’t been released yet

https://github.com/zhaofengli/colmena/issues/202

23:01:45
29 Nov 2024
@bl1nk:matrix.orgbl1nk changed their profile picture.01:11:40
@bl1nk:matrix.orgbl1nk changed their profile picture.01:11:57
@khalil:ksantana.netKhalil Santana changed their display name from khalil to Khalil Santana.12:21:11
@madonius:entropia.de/madonius[er|he]ah thanks :)15:40:07
@madonius:entropia.de/madonius[er|he]I mean it's not too shabby to be forced to check in you changes :D15:40:22
8 Dec 2024
@mannp:mannuk.rocksmannp joined the room.18:51:48
11 Dec 2024
@ttrss:matrix.orgttrss joined the room.03:43:11
@ttrss:matrix.orgttrsshi03:43:19
@ttrss:matrix.orgttrss

hi, im configuring colmena, whats the significance of meta.nixpkgs namley the system i choose? the docs say:
The pinned Nixpkgs package set. Accepts one of the following:

A path to a Nixpkgs checkout
The Nixpkgs lambda (e.g., import <nixpkgs>)
An initialized Nixpkgs attribute set

This option must be specified when using Flakes.

yet it complains if i pass anything other than an initialized nixpkgs attribute set

03:44:00
16 Dec 2024
@justinas:nixos.devJustinas Stankevičius I think that's a Flake-specific thing. Just use an initialized set for that, you can still set nixpkgs.* options in your nodes' configs and they shoul dwork. 16:51:40
@tom:dragar.deTomRegarding [#224 - New Release?](https://github.com/zhaofengli/colmena/issues/225). Are there any blockers?17:19:53
21 Dec 2024
@otanaut:matrix.org@otanaut:matrix.org joined the room.00:11:57
@otanaut:matrix.org@otanaut:matrix.orgHey, when using colmena with nixosConfigurations, as suggested in this Issus:https://github.com/zhaofengli/colmena/issues/60, where do i put the deplomeny.targetUser and targetHost properties?00:13:12
@otanaut:matrix.org@otanaut:matrix.orgDo i still simply generate a `colmena.$name.deployment` attribute set?00:18:59
@otanaut:matrix.org@otanaut:matrix.org* Hey, when using colmena with nixosConfigurations, as suggested in this Issus:https://github.com/zhaofengli/colmena/issues/60, where do i put the `deploment.targetUser` and `targetHost` properties?00:19:10
@dmoonfire:matrix.orgdmoonfire I'm trying to update from 24.05 to 24.11, but I'm hitting some annoying little burps. I did get around the impure by using the colmena github, but now I'm having trouble getting permittedInsecurePackages working. I have it in my flake at outputs.colmena.defaults.nixpkgs.config.permittedInsecurePackages, but it doesn't seem to be picking it up and allowing to install.

However, if I use export NIXPKGS_ALLOW_INSECURE=1 and --impure it works.

I also tried putting it in outputs.colmena.meta.nixpkgs = import ... { inherit system; nixpkgs.config... } but that didn't work.

Any suggestions? I'd really like not to work in --impure if possible.
21:16:52
@dmoonfire:matrix.orgdmoonfireThis was all working for the year or so before I got up to 24.11. :)21:17:18
22 Dec 2024
@polygon:catgirl.cloudUnit 1721344 [polygon] (it/its, es/ihr) changed their display name from polygon system (it/she, no "you") to polygon& (it/she).08:04:02
@allrealmsoflife:matrix.orgallrealmsoflife joined the room.15:54:19
@justinas:nixos.devJustinas Stankevičius dmoonfire: in the second case it should be import nixpkgs { inherit system; config = ... }. Not nixpkgs.config. 18:38:44
@justinas:nixos.devJustinas Stankevičius Try also putting it in nixpkgs.config in an individual node's config. The Flakes shim you linked does not seem to necessarily apply defaults. 18:39:15
@justinas:nixos.devJustinas Stankevičius
In reply to @otanaut:matrix.org
Hey, when using colmena with nixosConfigurations, as suggested in this Issus:https://github.com/zhaofengli/colmena/issues/60, where do i put the `deploment.targetUser` and `targetHost` properties?
Include the colmena.nixosModules.deploymentOptions module in your nodes modules / imports, then use deployment.targetHost in the node config like before.
18:40:00
23 Dec 2024
@dmoonfire:matrix.orgdmoonfire I tried putting it in the package and it doesn't seem to be picking it up.

      colmena = {
        meta = {
          # Figure out the default nixpkgs to use for each node.
          nixpkgs = import inputs.nixpkgs {
            system = "x86_64-linux";
            config.permittedInsecurePackages = insecure-packages;
          };

Putting it as config. in various places get the error where you can't configure a setting and a service in the same (unknown boot or services depending on where).
04:09:12
@pepin:globohomo.coPepin joined the room.19:49:50
@pepin:globohomo.coPepin

Hi, I am overriding package version via overrideAttrs. colmena build works fine, however applying the build throws this error:

error: cannot add path '/nix/store/dpxhgkc31n0yh7mv7a47x5p9j4rmk3gz-foundationdb73' because it lacks a signature by a trusted key

Is there a way to bypass the check?

19:52:04
24 Dec 2024
@justinas:nixos.devJustinas Stankevičius
In reply to @dmoonfire:matrix.org
I tried putting it in the package and it doesn't seem to be picking it up.

      colmena = {
        meta = {
          # Figure out the default nixpkgs to use for each node.
          nixpkgs = import inputs.nixpkgs {
            system = "x86_64-linux";
            config.permittedInsecurePackages = insecure-packages;
          };

Putting it as config. in various places get the error where you can't configure a setting and a service in the same (unknown boot or services depending on where).

get the error where you can't configure a setting and a service in the same (unknown boot or services depending on where).

I'm not sure what that means

10:43:46
@karlthane:matrix.org@karlthane:matrix.org joined the room.13:58:22
@karlthane:matrix.org@karlthane:matrix.org left the room.14:03:18
@dmoonfire:matrix.orgdmoonfire
In reply to@justinas:nixos.dev

get the error where you can't configure a setting and a service in the same (unknown boot or services depending on where).

I'm not sure what that means

Adding the configuration option to the top-level file for a host (in example/default.nix with example = import ./src/nodes/example/default.nix; in flake.nix), such as:

config.permittedInsecurePackages = ["dotnet-sdk-6.0.428"];

gives the following error:

       error: Module `:anon-1766:anon-1' has an unsupported attribute `boot'. This is caused by introducing a top-level `config' or `options' attribute. Add configuration attributes immediately on the top level instead, or move all of them (namely: boot deployment environment networking services sops system time) into the explicit `config' attribute.

Putting this in the top-level file:

nixpkgs.config.permittedInsecurePackages = ["dotnet-sdk-6.0.428"];

doesn't pick up the insecure packages entry. "Doesn't pick up" being "gives me an error that I need to add dotnet-sdk-6.0.428 to the permittedInsecurePackages" error.

Putting the nixpkgs.config... in flake.nix:outputs.colmena.defaults is what used to work before I upgraded to 24.11.

Putting the config... in flake.nix:outputs.colmena.meta.nixpkgs = import inputs.nixpkgs { ...; config.permitted... } doesn't pick it up.

Putting the nixpkgs.config... in flake.nix:outputs.colmena.meta.nixpkgs = import inputs.nixpkgs { ...; config.permitted... } doesn't pick it up (but you already said that, just being complete).
23:17:23

Show newer messages


Back to Room ListRoom Version: 6