uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
40
nixos/modules/virtualisation/cloudstack-config.nix
Normal file
40
nixos/modules/virtualisation/cloudstack-config.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
{
|
||||
imports = [
|
||||
../profiles/qemu-guest.nix
|
||||
];
|
||||
|
||||
config = {
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-label/nixos";
|
||||
autoResize = true;
|
||||
};
|
||||
|
||||
boot.growPartition = true;
|
||||
boot.kernelParams = [ "console=tty0" ];
|
||||
boot.loader.grub.device = "/dev/vda";
|
||||
boot.loader.timeout = 0;
|
||||
|
||||
# Allow root logins
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
permitRootLogin = "prohibit-password";
|
||||
};
|
||||
|
||||
# Cloud-init configuration.
|
||||
services.cloud-init.enable = true;
|
||||
# Wget is needed for setting password. This is of little use as
|
||||
# root password login is disabled above.
|
||||
environment.systemPackages = [ pkgs.wget ];
|
||||
# Only enable CloudStack datasource for faster boot speed.
|
||||
environment.etc."cloud/cloud.cfg.d/99_cloudstack.cfg".text = ''
|
||||
datasource:
|
||||
CloudStack: {}
|
||||
None: {}
|
||||
datasource_list: ["CloudStack"]
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue