!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

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

You have reached the beginning of time (for this room).


SenderMessageTime
20 Aug 2022
@janejasperous:one.ems.hostJane Jasperous where i need to declare system to keep running colmena without --impure flag? 17:39:31
@janejasperous:one.ems.hostJane Jasperous * where i need to declare system to keep running colmena 0.4.0-pre without --impure flag? 17:40:09
21 Aug 2022
@winterqt:nixos.devWinter (she/her)
In reply to @janejasperous:one.ems.host
where i need to declare system to keep running colmena 0.4.0-pre without --impure flag?
meta.nixpkgs = import nixpkgs { system = "..."; }
01:43:59
@winterqt:nixos.devWinter (she/her)see https://colmena.cli.rs/unstable/tutorial/flakes.html#basic-configuration01:44:20
@janejasperous:one.ems.hostJane Jasperous
In reply to @winterqt:nixos.dev
meta.nixpkgs = import nixpkgs { system = "..."; }
is not working for me then
08:40:09
@janejasperous:one.ems.hostJane JasperousRedacted or Malformed Event08:41:26
@janejasperous:one.ems.hostJane Jasperous
$ colmena apply --on nadaplex -v
warning: Git tree '/home/juanjop/Git/Projects/nixos-config' is dirty
[INFO ] Using flake: git+file:///home/juanjop/Git/Projects/nixos-config
[INFO ] Enumerating nodes...
error: attribute 'currentSystem' missing

       at /nix/store/2hvsmg7w6yw7afn35dylzbmdf3qii34c-source/pkgs/top-level/impure.nix:17:43:
08:42:05
@janejasperous:one.ems.hostJane Jasperous *
$ colmena apply --on nadaplex -v
warning: Git tree '/home/xxxxx/Git/Projects/nixos-config' is dirty
[INFO ] Using flake: git+file:///home/xxxxx/Git/Projects/nixos-config
[INFO ] Enumerating nodes...
error: attribute 'currentSystem' missing

       at /nix/store/2hvsmg7w6yw7afn35dylzbmdf3qii34c-source/pkgs/top-level/impure.nix:17:43:
08:42:33
@greaka:greaka.degreaka changed their display name from greaka ⚡️ to greaka .09:25:58
22 Aug 2022
@v:meowy.tech@v:meowy.tech joined the room.07:42:12
23 Aug 2022
@callmeecho:matrix.orgEcho joined the room.00:49:08
@rewina:matrix.orgrewine joined the room.11:32:18
@mlyx:matrix.org@mlyx:matrix.org joined the room.17:09:22
27 Aug 2022
@farcaller:matrix.orgfarcaller is it typical to define something like fileSystems."/" ... or all the boot.* in defaults? I'm using virtualization/kubevirt.nix profile for nixos-generate but it seems that I need to copy its contents over to make things tick. 16:58:46
29 Aug 2022
@zhaofeng:zhaofeng.liZhaofeng Li (missed this) Hmm, maybe there is something else. Have you tried --show-trace? 15:50:39
@zhaofeng:zhaofeng.liZhaofeng Li

You can use everything that nixos-generate generated for you. A typical pattern is:

{
  alpha = import ./hosts/alpha/configuration.nix;
}
15:52:29
30 Aug 2022
@aruzeta:matrix.org@aruzeta:matrix.org joined the room.14:41:55
@aruzeta:matrix.org@aruzeta:matrix.org left the room.14:56:00
2 Sep 2022
@kity:kity.wtfproblems changed their display name from ash (it/its) 🏳️‍⚧️ to problems.14:04:40
@yuka:yuka.dev@yuka:yuka.dev joined the room.14:32:33
@yuka:yuka.dev@yuka:yuka.devheya14:38:35
@yuka:yuka.dev@yuka:yuka.devSo... I'm looking at colmena for replacing my own 100 line deployment module.14:44:43
@yuka:yuka.dev@yuka:yuka.devIt seems like the design is quite similar, with nodes (in my case they are called hosts) being passed in as specialArgs14:45:00
@yuka:yuka.dev@yuka:yuka.devWhat I don't like at all is that colmena itself is not tracked at a flake dependency14:45:30
@yuka:yuka.dev@yuka:yuka.devAnd that it has its own evaluation entry points14:45:43
@yuka:yuka.dev@yuka:yuka.dev It would be way cooler if colmena was a flake, that provides a function makeHive 14:46:07
@yuka:yuka.dev@yuka:yuka.dev colmena could then use .# as entry point with the output of makeHive providing the necessary things.
And the colmena package itself could be re-exported to my flake.
So that I do nix run .#colmena apply and it uses the colmena version pinned in my flake.
14:50:02
@yuka:yuka.dev@yuka:yuka.devAs a bonus, it would remove the need for this wrapper flake to get pure evaluation14:50:43
@yuka:yuka.dev@yuka:yuka.devAnother bonus: This could make it possible to be compatible with nixosConfigurations and nixos-rebuild and so on15:14:47

Show newer messages


Back to Room ListRoom Version: 6