azure-image: provide configuration.nix which allows nixos-rebuild to build a working generation and add helpful comments
commit18d43d74f6d3a538bacc6c49d844a2e439cf6cba
authorEvgeny Egorochkin <phreedom@yandex.ru>
dateThu 3 Mar 2016, 03:58 (11 years ago)
parentba7b5ad
nixos/modules/virtualisation/azure-config-user.nixnew file+12
@@ -0,0 +1,12 @@
1+{ config, pkgs, modulesPath, ... }:
2+
3+{
4+ # To build the configuration or use nix-env, you need to run
5+ # either nixos-rebuild --upgrade or nix-channel --update
6+ # to fetch the nixos channel.
7+
8+ # This configures everything but bootstrap services,
9+ # which only need to be run once and have already finished
10+ # if you are able to see this comment.
11+ imports = [ "${modulesPath}/virtualisation/azure-common.nix" ];
12+}
nixos/modules/virtualisation/azure-image.nix+1−1
@@ -78,7 +78,7 @@ in
7878
7979 echo Install a configuration.nix.
8080 mkdir -p /mnt/etc/nixos /mnt/boot/grub
81− cp ${./azure-config.nix} /mnt/etc/nixos/configuration.nix
81+ cp ${./azure-config-user.nix} /mnt/etc/nixos/configuration.nix
8282
8383 echo Generate the GRUB menu.
8484 ln -s vda /dev/sda