!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

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

Load older messages


SenderMessageTime
13 Feb 2023
@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
@cw:kernelpanic.cafeChinchilla Washingtonimage.png
Download image.png
14:01:28
@cw:kernelpanic.cafeChinchilla Washington
In reply to @raphi:tapesoftware.net
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.
Ah ha, thank you!
14:01:36
@cw:kernelpanic.cafeChinchilla Washington
In reply to @cw:kernelpanic.cafe
now that there's no more filenames to cycle through, it just pretends it's not there
This is actually from when I trued to just drop it in the nix store
14:02:20
@cw:kernelpanic.cafeChinchilla Washingtonfml14:02:23
@cw:kernelpanic.cafeChinchilla Washingtonbut why on would it try to build the old versions that have nothing to do with my current source code?14:02:47
@cw:kernelpanic.cafeChinchilla Washington
In reply to @raphi:tapesoftware.net
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.
Updated and it still shows pre, hmm. That's for fighting another day though, I just need luks to auto-unlock before I leave town. My roomate can't be assed to type in a long unlock password every time I need to reboot, lol
14:07:33
@raphi:tapesoftware.netraphiit will always show pre-git14:07:49
@cw:kernelpanic.cafeChinchilla Washingtonah. weird. I never saw that before this release14:08:07
@cw:kernelpanic.cafeChinchilla WashingtonI even have one really old build that showed 22.11 somehow. I'll be manually labelling them soon enough anyway14:08:36
@cw:kernelpanic.cafeChinchilla Washingtonlet's try a GC14:09:50

Show newer messages


Back to Room ListRoom Version: 6