| * Hi! I'm new to NixOS, but want to try out Colmena as a means to set up some computers in my home. One of them is a Microsoft Surface Pro 3, which needs <nixos-hardware/microsoft/surface-pro/3> to function properly. However, I'm struggling to use that with Colmena.
What I have now is something like this:
flake.nix machines
- surface-configuration.nix
- surface-hardware-configuration.nix
In flake.nix:
inputs = { nixpkg.s.url = ... };
outputs = {nixpkgs, ...} : {
colmena = {
meta = // default from examples
surface = {name, nodes, pkgs, ... } : {
deployment = { targetHost = name; targetUser="nixos"; };
networking.hostName = name;
imports = [
<nixos-hardware/microsoft/surface-pro/3>
./machines/surface-configuration.nix
]
};
};
And machines/surface-configuration.nix is the /etc/nixos/configuration.nix file copied from the surface after a fresh install. It, in turn, imports machines/surface-hardware-configuration.nix, which I've also left as default.
|