| 1 Dec 2023 |
Chinchilla Optional | okay so remote system has that file uploaded to /run/keys/myservice.secret but with no contents in the file | 22:22:39 |
Chinchilla Optional | odd | 22:22:53 |
mihtig | In reply to @zhaofeng:zhaofeng.li Yeah, on non-NixOS hosts the Nix binaries aren't in the PATH set up by sshd/pam. It's a long-standing issue: https://github.com/NixOS/nix/issues/1078 Thank you I wasn’t aware. | 22:53:37 |
| 2 Dec 2023 |
Chinchilla Optional | and... it works now for some reason. Didn't change anything. Great. | 00:31:18 |
| @srid:matrix.org joined the room. | 16:03:02 |
| NixOS Moderation Bot banned @srid:matrix.org (<no reason supplied>). | 16:03:03 |
| @sivertism:matrix.org joined the room. | 16:54:22 |
@sivertism:matrix.org | 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 = ... };
| 17:27:44 |
@sivertism:matrix.org | In reply to @sivertism:matrix.org
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 = ... };
hit enter too soon... hold on | 17:28:12 |
@sivertism:matrix.org | * 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.
| 17:34:05 |
@sivertism:matrix.org | * 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.
From this, I first get an error error: cannot look up '<nixos-hardware/microsoft/surface-pro/3>' in pure evaluation mode (use '--impure' to override), so I use --impure, but then get error: file 'nixos-hardware/microsoft/surface-pro/3' was not found in the Nix search path (add it using $NIX_PATH or -I. I should probably add it the proper way with a url to nixos-hardware as shown in the nixos-hardware section on flakes, but I'm not sure where to stick in those modules ref: (nixos-hardware#flakes)[https://github.com/NixOS/nixos-hardware#using-nix-flakes-support].
Does anyone know how I should proceed?
| 17:39:11 |
@sivertism:matrix.org | In reply to @sivertism:matrix.org
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 = ... };
* hit enter too soon... hold on | 17:39:23 |
@sivertism:matrix.org | * hit enter too soon... hold on
Done :)
| 17:39:58 |
@sivertism:matrix.org | * 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.
From this, I first get an error error: cannot look up '<nixos-hardware/microsoft/surface-pro/3>' in pure evaluation mode (use '--impure' to override), so I use --impure, but then get error: file 'nixos-hardware/microsoft/surface-pro/3' was not found in the Nix search path (add it using $NIX_PATH or -I. I should probably add it the proper way with a url to nixos-hardware as shown in the nixos-hardware section on flakes, but I'm not sure where to stick in those modules ref: (nixos-hardware#flakes)[https://github.com/NixOS/nixos-hardware#using-nix-flakes-support].
Does anyone know how I should proceed?
| 17:41:05 |