Skip to content

Instantly share code, notes, and snippets.

@bledari
Created November 2, 2017 04:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bledari/8e55f9a21ed4a8d5348e7230b5ca5dc2 to your computer and use it in GitHub Desktop.
Save bledari/8e55f9a21ed4a8d5348e7230b5ca5dc2 to your computer and use it in GitHub Desktop.
nixTroubleshoot
let
template = import ./conf.nix;
in
{
network.description = "Load balancing network";
# TODO override some template value
balancer = template // { networking.hostname = "balancer"; };
}
{ config, pkgs, ... }:
{
networking.hostName = "nixos101";
}
let
# vbox = { deployment.targetEnv = "virtualbox"; };
in
{
balancer = { deployment.targetHost = "192.168.1.101"; };
}
nixops delete --all
nixops create ./arch.nix ./deployment.nix -d load-balancer
created deployment ‘05b38e4c-bf85-11e7-8dda-0a0027000026’
05b38e4c-bf85-11e7-8dda-0a0027000026
nixops info
error: value is a function while a set was expected
(use ‘--show-trace’ to show detailed location information)
warning: evaluation of the deployment specification failed; status info may be incorrect
Network name: load-balancer
Network UUID: 05b38e4c-bf85-11e7-8dda-0a0027000026
Network description: Unnamed NixOps network
Nix expressions: <path>/arch.nix <path>/deployment.nix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment