!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

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

Load older messages


SenderMessageTime
16 Feb 2024
@hexa:lossy.networkhexaanyway I think the error we were seeing was a red herring14:19:08
@raitobezarius:matrix.orgraitobezariusah fuck14:19:47
@hexa:lossy.networkhexa
error:
       … while evaluating attribute 'sso2.darmstadt.ccc.de'

         at /nix/store/k766s621xxdvsfxy46rjxfnb4bqb9glj-nixos-23.11-src/lib/attrsets.nix:560:14:

          559|     value:
          560|     { inherit name value; };
             |              ^
          561|

       … while calling anonymous lambda

         at /run/user/1000/colmena-assets-le334v/eval.nix:188:39:

          187|   toplevel =         lib.mapAttrs (_: v: v.config.system.build.toplevel) nodes;
          188|   deploymentConfig = lib.mapAttrs (_: v: v.config.deployment)            nodes;
             |                                       ^
          189|   deploymentConfigSelected = names: lib.filterAttrs (name: _: elem name names) deploymentConfig;

       … while calling 'g'

         at /nix/store/k766s621xxdvsfxy46rjxfnb4bqb9glj-nixos-23.11-src/lib/attrsets.nix:701:19:

          700|           g =
          701|             name: value:
             |                   ^
          702|             if isAttrs value && cond value

       … from call site

         at /nix/store/k766s621xxdvsfxy46rjxfnb4bqb9glj-nixos-23.11-src/lib/attrsets.nix:704:20:

          703|               then recurse (path ++ [name]) value
          704|               else f (path ++ [name]) value;
             |                    ^
          705|         in mapAttrs g;

       … while calling anonymous lambda

         at /nix/store/k766s621xxdvsfxy46rjxfnb4bqb9glj-nixos-23.11-src/lib/modules.nix:242:72:

          241|           # For definitions that have an associated option
          242|           declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options;
             |                                                                        ^
          243|

       … while evaluating the option `_module.freeformType':

       … while calling anonymous lambda

         at /nix/store/k766s621xxdvsfxy46rjxfnb4bqb9glj-nixos-23.11-src/lib/modules.nix:538:19:

          537|     mergeModules' prefix modules
          538|       (concatMap (m: map (config: { file = m._file; inherit config; }) (pushDownProperties m.config)) modules);
             |                   ^
          539|

       … from call site

         at /nix/store/k766s621xxdvsfxy46rjxfnb4bqb9glj-nixos-23.11-src/lib/modules.nix:538:73:

          537|     mergeModules' prefix modules
          538|       (concatMap (m: map (config: { file = m._file; inherit config; }) (pushDownProperties m.config)) modules);
             |                                                                         ^
          539|

       … while calling 'pushDownProperties'

         at /nix/store/k766s621xxdvsfxy46rjxfnb4bqb9glj-nixos-23.11-src/lib/modules.nix:874:24:

          873|   */
          874|   pushDownProperties = cfg:
             |                        ^
          875|     if cfg._type or "" == "merge" then

       … from call site

         at /nix/store/k766s621xxdvsfxy46rjxfnb4bqb9glj-nixos-23.11-src/nixos/lib/eval-config.nix:50:8:

           49|     config = lib.mkMerge (
           50|       (optional (system != null) {
             |        ^
           51|         # Explicit `nixpkgs.system` or `nixpkgs.localSystem` should override

       … while calling 'optional'

         at /nix/store/k766s621xxdvsfxy46rjxfnb4bqb9glj-nixos-23.11-src/lib/lists.nix:359:20:

          358|   */
          359|   optional = cond: elem: if cond then [elem] else [];
             |                    ^
          360|

       error: attribute 'system' missing

       at /run/user/1000/colmena-assets-le334v/eval.nix:143:18:

          142|     };
          143|   in evalConfig {
             |                  ^
          144|     inherit (npkgs) system;
       Did you mean one of mystem, systemc, systemd, syntex or systemfd?
14:19:49
@raitobezarius:matrix.orgraitobezariusi was so close with my .config/nix/ idea14:19:51
@raitobezarius:matrix.orgraitobezariusjust I don't do this sort of shit14:19:57
@hexa:lossy.networkhexakilling aliases is good shit14:20:05
@hexa:lossy.networkhexabut what alias am I using?14:20:12
@raitobezarius:matrix.orgraitobezariuslegacy system 14:20:28
@raitobezarius:matrix.orgraitobezariusinstead of localSystem or crossSystem I'd assume14:20:38
@raitobezarius:matrix.orgraitobezariusat this point, this looks like kinda a bug in colmena14:20:52
@raitobezarius:matrix.orgraitobezariusmaybe half half colmena nixpkgs14:20:59
@hexa:lossy.networkhexahuh, could be14:21:01
@raitobezarius:matrix.orgraitobezariusbut why would it break randomly14:21:05
@hexa:lossy.networkhexaand like that 😄 14:21:12
@hexa:lossy.networkhexa fails with localSystem = system the same 🙂 14:21:47
@raitobezarius:matrix.orgraitobezariusat this point, you want to confirm one thing14:24:17
@raitobezarius:matrix.orgraitobezariuscan you evaluate your system toplevel without colmena?14:24:23
@raitobezarius:matrix.orgraitobezarius as long as you are not using colmena specific nixos modules, you can just do pkgs.nixos [ (import ./machines/configuration.nix) ] 14:24:58
@hexa:lossy.networkhexadeployment.keys14:26:48
@hexa:lossy.networkhexaagenix soon-ish14:26:59
@raitobezarius:matrix.orgraitobezariusyou can inject colmena specific modules too in that list14:28:00
@raitobezarius:matrix.orgraitobezariusand that will fix the thing14:28:03
@raitobezarius:matrix.orgraitobezariushere's an example on how I do it with flake:14:28:08
@raitobezarius:matrix.orgraitobezariushttps://git.newtype.fr/newtype/newtype-org-configurations/src/branch/main/configurations.nix#L19-L2114:28:38
20 Feb 2024
@sofo:matrix.org@sofo:matrix.org changed their display name from Sofi to Sofie.07:39:10
@sofo:matrix.org@sofo:matrix.org changed their profile picture.14:39:01
@sofo:matrix.org@sofo:matrix.org changed their profile picture.14:41:30
@sofo:matrix.org@sofo:matrix.org changed their profile picture.14:42:42
@sofo:matrix.org@sofo:matrix.org changed their profile picture.14:44:01
22 Feb 2024
@raitobezarius:matrix.orgraitobezarius

Zhaofeng Li: I'm planning to perform a big change in my fork of colmena, i.e. to introduce ways to configure flavors of systems, e.g. NixOS systems, Liminix systems, etc.

My intuition is that all that colmena really care about is NixOS-style mechanisms to copy closures to target system (if needed) and activate the new configuration, with that in mind, I am planning to introduce configuration attribute sets to influence how eval.nix works and which modules does it pass, which activation script will it use and introduce things like nixosConfigurations, liminixConfigurations in the top-level of the hive.

I am aware this is an intrusive change so I was planning to do it in my own fork of colmena and make a new tool out of this which will not be named colmena, I wanted to check with you if you were not interested into the idea (and if it could not make upstream). WDYT?

16:35:36

Show newer messages


Back to Room ListRoom Version: 6