!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

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

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


SenderMessageTime
28 Jan 2025
@grw00:matrix.orggrw00

Quentin Le Guennec: does the following work? ie, does not prompt for password or to accept key fingerprint

sudo su
ssh quentin@xxx

08:54:15
@howlymowly:matrix.orgThomas m changed their display name from howlymowly to Thomas m.19:26:43
8 Feb 2025
@wyvern2742:matrix.orgWYVERN joined the room.20:28:59
@wyvern2742:matrix.orgWYVERN

Hi, does anyone have any working example of using colmena in a flake with disko? Passing inputs via specialArgs = {inherit inputs;}; results in error: The option inputs' does not exist.` the minute I use it within a config; even though I've found other users with it working the same way: https://discourse.nixos.org/t/colmena-how-to-push-a-flake-input-into-the-individual-nodes/36332

{
	inputs = {
		nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
		disko.url = "github:nix-community/disko";
	};

	outputs = { nixpkgs, self, ... }@inputs: {
		colmena = {
			meta = {
				nixpkgs = import nixpkgs {
					system = "x86_64-linux";
				};
				specialArgs = {inherit inputs;};
			};
			test = import ./disks.nix;
		};
	};
}
{ inputs, ...}:
{
  inputs.disko.devices = {
    disk = {
      main = {
        device = "/dev/disk/by-id/some-disk-id";
        type = "disk";
        content = {
          type = "gpt";
          partitions = {
            root = {
              size = "100%";
              content = {
                type = "filesystem";
                format = "ext4";
                mountpoint = "/";
              };
            };
          };
        };
      };
    };
  };
}
20:40:29
@wyvern2742:matrix.orgWYVERN *

Hi, does anyone have any working example of using colmena in a flake with disko? Passing inputs via specialArgs = {inherit inputs;}; results in error: The option "inputs" does not exist. the minute I use it within a config; even though I've found other users with it working the same way: https://discourse.nixos.org/t/colmena-how-to-push-a-flake-input-into-the-individual-nodes/36332

{
	inputs = {
		nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
		disko.url = "github:nix-community/disko";
	};

	outputs = { nixpkgs, self, ... }@inputs: {
		colmena = {
			meta = {
				nixpkgs = import nixpkgs {
					system = "x86_64-linux";
				};
				specialArgs = {inherit inputs;};
			};
			test = import ./disks.nix;
		};
	};
}
{ inputs, ...}:
{
  inputs.disko.devices = {
    disk = {
      main = {
        device = "/dev/disk/by-id/some-disk-id";
        type = "disk";
        content = {
          type = "gpt";
          partitions = {
            root = {
              size = "100%";
              content = {
                type = "filesystem";
                format = "ext4";
                mountpoint = "/";
              };
            };
          };
        };
      };
    };
  };
}
20:40:52
@wyvern2742:matrix.orgWYVERN *

Hi, does anyone have any working example of using colmena in a flake with disko? Passing inputs via specialArgs = {inherit inputs;}; results in error: The option "inputs" does not exist. the minute I use it within a config; even though I've found other users with it working the same way: https://discourse.nixos.org/t/colmena-how-to-push-a-flake-input-into-the-individual-nodes/36332

As a minimum config:

{
	inputs = {
		nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
		disko.url = "github:nix-community/disko";
	};

	outputs = { nixpkgs, self, ... }@inputs: {
		colmena = {
			meta = {
				nixpkgs = import nixpkgs {
					system = "x86_64-linux";
				};
				specialArgs = {inherit inputs;};
			};
			test = import ./disks.nix;
		};
	};
}
{ inputs, ...}:
{
  inputs.disko.devices = {
    disk = {
      main = {
        device = "/dev/disk/by-id/some-disk-id";
        type = "disk";
        content = {
          type = "gpt";
          partitions = {
            root = {
              size = "100%";
              content = {
                type = "filesystem";
                format = "ext4";
                mountpoint = "/";
              };
            };
          };
        };
      };
    };
  };
}
20:41:47
@wyvern2742:matrix.orgWYVERNjudging from others in this chat also using disko, I think at some point a template in the docs would be good, otherwise a point about incompatibility to save time20:42:32
9 Feb 2025
@tired:fairydust.space@tired:fairydust.space left the room.22:50:18

Show newer messages


Back to Room ListRoom Version: 6