Advertisement
Guest User

Untitled

a guest
Mar 29th, 2019
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.04 KB | None | 0 0
  1. $ cat configuration.nix
  2. {
  3.   "kshaa" = { config, pkgs, ... }: {
  4.     imports = [
  5.       ./modules/users.nix
  6.     ];
  7.  
  8.     services = {
  9.       openssh = {
  10.         enable = true;
  11.         gatewayPorts = "yes";
  12.       };
  13.     };
  14.   };
  15. }
  16.  
  17. $ cat virtualbox.nix
  18. {
  19.   "kshaa" = { config, pkgs, ... }: {
  20.     deployment.targetEnv = "virtualbox";
  21.     deployment.virtualbox.memorySize = 1024;
  22.     deployment.virtualbox.vcpu = 1;
  23.     deployment.virtualbox.headless = true;
  24.   };
  25. }
  26.  
  27. $ nixops deploy -d kshaa_virtualbox --show-trace
  28. building all machine configurations...
  29. error: while evaluating the attribute 'buildCommand' of the derivation 'nixops-machines' at /nix/store/ydni1jrlb137ndr7s79l62x2rgyrpkpd-nixpkgs-19.09pre173445.796a8764ab8/nixpkgs/pkgs/build-support/trivial-builders.nix:7:14:
  30. while evaluating anonymous function at /nix/store/fi0w3msyy982han8yqlb0pn6ffzwc04p-nixops-1.6.1/share/nix/nixops/eval-machine-info.nix:369:46, called from undefined position:
  31. while evaluating the attribute 'config.system.build.toplevel' at /home/kshaa/.nix-defexpr/channels/nixpkgs/nixos/modules/system/activation/top-level.nix:274:5:
  32. while evaluating 'foldr' at /home/kshaa/.nix-defexpr/channels/nixpkgs/lib/lists.nix:39:20, called from /home/kshaa/.nix-defexpr/channels/nixpkgs/nixos/modules/system/activation/top-level.nix:138:12:
  33. while evaluating 'fold'' at /home/kshaa/.nix-defexpr/channels/nixpkgs/lib/lists.nix:42:15, called from /home/kshaa/.nix-defexpr/channels/nixpkgs/lib/lists.nix:46:8:
  34.  
  35. Failed assertions:
  36. - Mountpoint '/': 'autoResize = true' is not supported for 'fsType = "auto"': fsType has to be explicitly set and only the ext filesystems and f2fs support it.
  37. Traceback (most recent call last):
  38.  File "/nix/store/fi0w3msyy982han8yqlb0pn6ffzwc04p-nixops-1.6.1/bin/..nixops-wrapped-wrapped", line 990, in <module>
  39.    args.op()
  40.  File "/nix/store/fi0w3msyy982han8yqlb0pn6ffzwc04p-nixops-1.6.1/bin/..nixops-wrapped-wrapped", line 411, in op_deploy
  41.    max_concurrent_activate=args.max_concurrent_activate)
  42.  File "/nix/store/fi0w3msyy982han8yqlb0pn6ffzwc04p-nixops-1.6.1/lib/python2.7/site-packages/nixops/deployment.py", line 1056, in deploy
  43.    self.run_with_notify('deploy', lambda: self._deploy(**kwargs))
  44.  File "/nix/store/fi0w3msyy982han8yqlb0pn6ffzwc04p-nixops-1.6.1/lib/python2.7/site-packages/nixops/deployment.py", line 1045, in run_with_notify
  45.    f()
  46.  File "/nix/store/fi0w3msyy982han8yqlb0pn6ffzwc04p-nixops-1.6.1/lib/python2.7/site-packages/nixops/deployment.py", line 1056, in <lambda>
  47.    self.run_with_notify('deploy', lambda: self._deploy(**kwargs))
  48.  File "/nix/store/fi0w3msyy982han8yqlb0pn6ffzwc04p-nixops-1.6.1/lib/python2.7/site-packages/nixops/deployment.py", line 996, in _deploy
  49.    self.configs_path = self.build_configs(dry_run=dry_run, repair=repair, include=include, exclude=exclude)
  50.  File "/nix/store/fi0w3msyy982han8yqlb0pn6ffzwc04p-nixops-1.6.1/lib/python2.7/site-packages/nixops/deployment.py", line 664, in build_configs
  51.    raise Exception("unable to build all machine configurations")
  52. Exception: unable to build all machine configurations
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement