!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

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

Load older messages


SenderMessageTime
29 Jan 2023
@aleksana:mozilla.orgFind me at aleksana:qaq.li joined the room.05:14:31
@0x4a6f:matrix.org[0x4A6F]
In reply to @phaer:matrix.org
Yes
Do you have an example invocation that you might share?
14:39:09
@phaer:matrix.orgphaer
In reply to @0x4a6f:matrix.org
Do you have an example invocation that you might share?
Not really in a public repo, i am afraid. But https://gist.github.com/phaer/0168da5d7ceae254d0cdd63c78119fe8 should contain the relevant code and might help?
Theres a flake defining my colmena nodes (and reading some options from a toml file for that) and a disk layout for a single encrypted zfs disk. There's also the shell script i use for nixos-remote. server type and secret handling might need adaption.
14:58:36
@phaer:matrix.orgphaerLet me know if there are any questions about it :)14:59:30
@redhood:torac.ioredhood joined the room.22:50:07
8 Feb 2023
@zachel:fairydust.space@zachel:fairydust.space joined the room.18:48:27
10 Feb 2023
@hexagony:mozilla.orghexagony joined the room.02:05:08
12 Feb 2023
@me:indeednotjames.comemily joined the room.15:06:06
@thomaslepoix:matrix.orgthomaslepoix joined the room.21:34:44
13 Feb 2023
@cw:kernelpanic.cafeChinchilla WashingtonWhy would my systems still be built as 22.11-pre when my nixpkgs is 22.11 release?13:44:22
@cw:kernelpanic.cafeChinchilla Washington

In flake inputs:

    nixpkgs = {
      url = "github:NixOS/nixpkgs/release-22.11";
    };

in colmena:

    colmena = {
      meta = {
        nixpkgs = import nixpkgs {
          system = "x86_64-linux";
          overlays = [];
        };
        specialArgs = inputs;
      };
      cherry = {
        imports = [
          ./hosts/cherry.nix
          home-manager.nixosModules.home-manager
          stylix.nixosModules.stylix
        ];
        deployment.targetHost = "192.168.1.19";
      };
13:45:27
@cw:kernelpanic.cafeChinchilla Washington

another odd thing, it seems to build stale versions of whatever my source is. For example:

  # Setup keyfile
  boot.initrd.secrets = {
    "/luks.bin" = "/luks.bin";
  };
  # Enable grub cryptodisk
  boot.loader.grub.enableCryptodisk=true;
  boot.initrd.luks.devices."luks-uuid-here".keyFile = "/luks.bin";

but it errors with:

[ERROR]   stderr) updating GRUB 2 menu...
[ERROR]   stderr) cp: cannot stat '/cryptokeyfile.bin': No such file or directory
[ERROR]   stderr) failed to create initrd secrets: No such file or directory
13:46:56
@cw:kernelpanic.cafeChinchilla Washington cryptokeyfile.bin was the last filename. If I update my source code, the error will switch to luks.bin and fail. 13:49:49
@cw:kernelpanic.cafeChinchilla Washingtonimage.png
Download image.png
13:50:05
@cw:kernelpanic.cafeChinchilla Washingtonimage.png
Download image.png
13:50:21
@cw:kernelpanic.cafeChinchilla Washingtonimage.png
Download image.png
13:50:35
@cw:kernelpanic.cafeChinchilla WashingtonI'm going absolutely mental13:50:37
@cw:kernelpanic.cafeChinchilla Washingtonbut if I just change the file to match... It goes to some older version.13:54:47
@cw:kernelpanic.cafeChinchilla Washingtonimage.png
Download image.png
13:55:04
@cw:kernelpanic.cafeChinchilla Washingtonimage.png
Download image.png
13:55:24
@cw:kernelpanic.cafeChinchilla Washington^ without the underscore is 3-4 revisions ago during my troubleshooting. So it's not just a delay.13:56:27
@cw:kernelpanic.cafeChinchilla Washingtonimage.png
Download image.png
13:57:15
@cw:kernelpanic.cafeChinchilla Washingtonimage.png
Download image.png
13:57:27
@cw:kernelpanic.cafeChinchilla Washingtonimage.png
Download image.png
13:59:07
@cw:kernelpanic.cafeChinchilla Washingtonimage.png
Download image.png
14:00:28
@cw:kernelpanic.cafeChinchilla WashingtonEven further back14:00:32
@cw:kernelpanic.cafeChinchilla Washingtonand guess fucking what14:00:37
@cw:kernelpanic.cafeChinchilla Washingtonimage.png
Download image.png
14:01:01
@raphi:tapesoftware.netraphi
In reply to @cw:kernelpanic.cafe
Why would my systems still be built as 22.11-pre when my nixpkgs is 22.11 release?
that's fine, the "pre-git" suffix is just the default if nixpkgs can't figure out its own version
also you should use the "nixos-22.11" branch instead of the "release-22.11" branch. the release-* branches are the active development branches, and are untested. the nixos-* branches require tests to pass.
14:01:02
@cw:kernelpanic.cafeChinchilla Washingtonnow that there's no more filenames to cycle through, it just pretends it's not there 14:01:27

Show newer messages


Back to Room ListRoom Version: 6