Created
November 2, 2017 04:21
-
-
Save bledari/8e55f9a21ed4a8d5348e7230b5ca5dc2 to your computer and use it in GitHub Desktop.
nixTroubleshoot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
template = import ./conf.nix; | |
in | |
{ | |
network.description = "Load balancing network"; | |
# TODO override some template value | |
balancer = template // { networking.hostname = "balancer"; }; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, pkgs, ... }: | |
{ | |
networking.hostName = "nixos101"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
# vbox = { deployment.targetEnv = "virtualbox"; }; | |
in | |
{ | |
balancer = { deployment.targetHost = "192.168.1.101"; }; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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