Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

azure-image: provide configuration.nix which allows nixos-rebuild to build a working generation and add helpful comments

+13 -1
+12
nixos/modules/virtualisation/azure-config-user.nix
···
··· 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 + }
+1 -1
nixos/modules/virtualisation/azure-image.nix
··· 78 79 echo Install a configuration.nix. 80 mkdir -p /mnt/etc/nixos /mnt/boot/grub 81 - cp ${./azure-config.nix} /mnt/etc/nixos/configuration.nix 82 83 echo Generate the GRUB menu. 84 ln -s vda /dev/sda
··· 78 79 echo Install a configuration.nix. 80 mkdir -p /mnt/etc/nixos /mnt/boot/grub 81 + cp ${./azure-config-user.nix} /mnt/etc/nixos/configuration.nix 82 83 echo Generate the GRUB menu. 84 ln -s vda /dev/sda