backend-configuration.nix
{
my-other-machine =
{ config, pkgs, ... }:
{
deployment.targetEnv = "none";
deployment.targetHost = "192.168.1.114";
};
}
configuration.nix
{
network.description = "My Other Machine";
my-other-machine =
{ config, pkgs, ... }:
{
imports = [
../../common.nix
../../common-graphical.nix
];
boot.loader.grub.device = "/dev/sda";
networking.hostName = "my-other-machine";
};
}
output of nixops deploy -d my-other-machine
Enter passphrase for key '/home/macalimlim/.ssh/my-key':
my-other-machine> zsh:1: command not found: cat
Traceback (most recent call last):
File "/nix/store/53s3m37hs8s7lvqwbqigj7kr65dvg3n4-nixops-1.7/bin/..nixops-wrapped-wrapped", line 991, in <module>
args.op()
File "/nix/store/53s3m37hs8s7lvqwbqigj7kr65dvg3n4-nixops-1.7/bin/..nixops-wrapped-wrapped", line 412, in op_deploy
max_concurrent_activate=args.max_concurrent_activate)
File "/nix/store/53s3m37hs8s7lvqwbqigj7kr65dvg3n4-nixops-1.7/lib/python2.7/site-packages/nixops/deployment.py", line 1063, in deploy
self.run_with_notify('deploy', lambda: self._deploy(**kwargs))
File "/nix/store/53s3m37hs8s7lvqwbqigj7kr65dvg3n4-nixops-1.7/lib/python2.7/site-packages/nixops/deployment.py", line 1052, in run_with_notify
f()
File "/nix/store/53s3m37hs8s7lvqwbqigj7kr65dvg3n4-nixops-1.7/lib/python2.7/site-packages/nixops/deployment.py", line 1063, in <lambda>
self.run_with_notify('deploy', lambda: self._deploy(**kwargs))
File "/nix/store/53s3m37hs8s7lvqwbqigj7kr65dvg3n4-nixops-1.7/lib/python2.7/site-packages/nixops/deployment.py", line 996, in _deploy
nixops.parallel.run_tasks(nr_workers=-1, tasks=self.active_resources.itervalues(), worker_fun=worker)
File "/nix/store/53s3m37hs8s7lvqwbqigj7kr65dvg3n4-nixops-1.7/lib/python2.7/site-packages/nixops/parallel.py", line 44, in thread_fun
result_queue.put((worker_fun(t), None, t.name))
File "/nix/store/53s3m37hs8s7lvqwbqigj7kr65dvg3n4-nixops-1.7/lib/python2.7/site-packages/nixops/deployment.py", line 979, in worker
os_release = r.run_command("cat /etc/os-release", capture_stdout=True)
File "/nix/store/53s3m37hs8s7lvqwbqigj7kr65dvg3n4-nixops-1.7/lib/python2.7/site-packages/nixops/backends/__init__.py", line 337, in run_command
return self.ssh.run_command(command, self.get_ssh_flags(), **kwargs)
File "/nix/store/53s3m37hs8s7lvqwbqigj7kr65dvg3n4-nixops-1.7/lib/python2.7/site-packages/nixops/ssh_util.py", line 291, in run_command
raise SSHCommandFailed(exc.message, exc.exitcode)
nixops.ssh_util.SSHCommandFailed: command ā['ssh', '-oControlPath=/tmp/nixops-ssh-tmpaeVBE8/master-socket', '-p', '22', '-p', '22', '-x', 'root@192.168.1.114', '--', 'cat /etc/os-release']ā failed on machine ādell-latitude-e6400ā (exit code 127)