summary refs log tree commit diff
path: root/nixos/maintainers
Commit message (Collapse)AuthorAge
* amazonImage: make statically sized againLuke Granger-Brown2021-05-01
| | | | | | | | | For reasons we haven't been able to work out, the aarch64 EC2 image now regularly exceeds the output image size on hydra.nixos.org. As a workaround, set this back to being statically sized again. The other images do seem to build - it's just a case of the EC2 image now being too large (occasionally non-determinstically).
* treewide: use auto diskSize for make-disk-imagelassulus2021-04-24
| | | | (cherry picked from commit f3aa040bcbf39935e7e9ac7a7296eac9da7623ec)
* Revert "treewide: use auto diskSize for make-disk-image"Luke Granger-Brown2021-04-24
| | | | This reverts commit f3aa040bcbf39935e7e9ac7a7296eac9da7623ec.
* Revert "nixos/amazon-image: (temporarily) use fixed disk size again"Luke Granger-Brown2021-04-24
| | | | This reverts commit 6a8359a92ab501ae62739e9d3302f48e3e73c750.
* nixos/amazon-image: (temporarily) use fixed disk size againLuke Granger-Brown2021-04-24
| | | | | | | | | As a temporary workaround for #120473 while the image builder is patched to correctly look up disk sizes, partially revert f3aa040bcbf39935e7e9ac7a7296eac9da7623ec for EC2 disk images only. We retain the type allowing "auto" but set the default back to the previous value.
* treewide: use auto diskSize for make-disk-imagelassulus2021-04-22
|
* add new Google Cloud image for the current releaseAmineChikhaoui2021-03-21
| | | | | update the create-gce.sh script with the ability to create public images out of a GS object.
* amazonImage: Upload disks as GP3 for cheaper & faster IO (#109027)Graham Christensen2021-01-11
| | | | | | GP3 is always faster and cheaper than GP2, so sticking to GP2 is leaving money on the table. https://cloudwiry.com/ebs-gp3-vs-gp2-pricing-comparison/
* Merge pull request #102174 from grahamc/ami-root-use-gptGraham Christensen2020-10-30
|\ | | | | AMI root partition table: use GPT to support >2T partitions
| * nixos.amazonAmi: use legacy+gpt disk images to support partitions >2TGraham Christensen2020-10-30
| |
* | create-amis: improve wording around the service name's IAM roleGraham Christensen2020-10-30
| | | | | | Co-authored-by: Cole Helbling <cole.e.helbling@outlook.com>
* | create-amis: allow customizing the service role nameGraham Christensen2020-10-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The complete setup on the AWS end can be configured with the following Terraform configuration. It generates a ./credentials.sh which I just copy/pasted in to the create-amis.sh script near the top. Note: the entire stack of users and bucket can be destroyed at the end of the import. variable "region" { type = string } variable "availability_zone" { type = string } provider "aws" { region = var.region } resource "aws_s3_bucket" "nixos-amis" { bucket_prefix = "nixos-amis-" lifecycle_rule { enabled = true abort_incomplete_multipart_upload_days = 1 expiration { days = 7 } } } resource "local_file" "credential-file" { file_permission = "0700" filename = "${path.module}/credentials.sh" sensitive_content = <<SCRIPT export service_role_name="${aws_iam_role.vmimport.name}" export bucket="${aws_s3_bucket.nixos-amis.bucket}" export AWS_ACCESS_KEY_ID="${aws_iam_access_key.uploader.id}" export AWS_SECRET_ACCESS_KEY="${aws_iam_access_key.uploader.secret}" SCRIPT } # The following resources are for the *uploader* resource "aws_iam_user" "uploader" { name = "nixos-amis-uploader" } resource "aws_iam_access_key" "uploader" { user = aws_iam_user.uploader.name } resource "aws_iam_user_policy" "upload-to-nixos-amis" { user = aws_iam_user.uploader.name policy = data.aws_iam_policy_document.upload-policy-document.json } data "aws_iam_policy_document" "upload-policy-document" { statement { effect = "Allow" actions = [ "s3:ListBucket", "s3:GetBucketLocation", ] resources = [ aws_s3_bucket.nixos-amis.arn ] } statement { effect = "Allow" actions = [ "s3:PutObject", "s3:GetObject", "s3:DeleteObject", ] resources = [ "${aws_s3_bucket.nixos-amis.arn}/*" ] } statement { effect = "Allow" actions = [ "ec2:ImportSnapshot", "ec2:DescribeImportSnapshotTasks", "ec2:DescribeImportSnapshotTasks", "ec2:RegisterImage", "ec2:DescribeImages" ] resources = [ "*" ] } } # The following resources are for the *vmimport service user* # See: https://docs.aws.amazon.com/vm-import/latest/userguide/vmie_prereqs.html#vmimport-role resource "aws_iam_role" "vmimport" { assume_role_policy = data.aws_iam_policy_document.vmimport-trust.json } resource "aws_iam_role_policy" "vmimport-access" { role = aws_iam_role.vmimport.id policy = data.aws_iam_policy_document.vmimport-access.json } data "aws_iam_policy_document" "vmimport-access" { statement { effect = "Allow" actions = [ "s3:GetBucketLocation", "s3:GetObject", "s3:ListBucket", ] resources = [ aws_s3_bucket.nixos-amis.arn, "${aws_s3_bucket.nixos-amis.arn}/*" ] } statement { effect = "Allow" actions = [ "ec2:ModifySnapshotAttribute", "ec2:CopySnapshot", "ec2:RegisterImage", "ec2:Describe*" ] resources = [ "*" ] } } data "aws_iam_policy_document" "vmimport-trust" { statement { effect = "Allow" principals { type = "Service" identifiers = [ "vmie.amazonaws.com" ] } actions = [ "sts:AssumeRole" ] condition { test = "StringEquals" variable = "sts:ExternalId" values = [ "vmimport" ] } } }
* | create-amis.sh: log the full response if describing the import snapshot ↵Graham Christensen2020-10-30
| | | | | | | | tasks fails
* | nixos ec2/create-amis.sh: shellcheck: $ is not needed in arithmeticGraham Christensen2020-10-30
| |
* | nixos ec2/create-amis.sh: shellcheck: explicitly make the additions to ↵Graham Christensen2020-10-30
| | | | | | | | block_device_mappings single strings
* | nixos ec2/create-amis.sh: shellcheck: read without -r mangles backslashesGraham Christensen2020-10-30
| |
* | nixos ec2/create-amis.sh: shellcheck: SC2155: Declare and assign separately ↵Graham Christensen2020-10-30
| | | | | | | | to avoid masking return values.
* | nixos ec2/create-amis.sh: shellcheck: quote state_dir referenceGraham Christensen2020-10-30
| |
* | nixos ec2/create-amis.sh: shellcheck: quote region referencesGraham Christensen2020-10-30
|/
* Merge pull request #89116 from wagdav/fix-args-create-amisLassulus2020-08-22
|\ | | | | nixos/maintainers/scripts/ec2/create-amis.sh: fix argument check
| * create-amis: fix argument checkDavid Wagner2020-05-28
| | | | | | | | | | | | | | | | | | Because this script enables `set -u` when no arguments are provided bash exits with the error: $1: unbound variable instead of the helpful usage message.
* | nixos/ec2: remove dependency on NIX_PATHJörg Thalheim2020-08-16
| | | | | | | | This is required when migrating to flakes
* | nixos/maintainers/*: editorconfig fixeszowoq2020-08-04
| |
* | nixos/azure-new: use local nixpkgsCole Mickens2020-04-27
|/
* nixos/azure: clarify how users work in basic exampleCole Mickens2020-03-29
|
* nixos/azure: upload-image.sh cleanup $1 handlingCole Mickens2020-03-29
|
* nixos/azure: upload-image names the image betterCole Mickens2020-03-29
|
* nixos/azure: simplify example imageCole Mickens2020-03-29
|
* azure: init nixos/maintainers/scripts/azure-newCole Mickens2020-03-29
|
* nixos-ami: update nvme_core.io_timeout for linux kernel >= 4.15Benjamin Hipple2020-03-22
| | | | | | NixOS 20.03 is built on kernel 5.4 and 19.09 is on 4.19, so we should update this option to the highest value possible, per linked upstream instructions from Amazon.
* create-amis: Add eu-north-1adisbladis2020-03-05
|
* maintainers/create-azure.sh: run from anywhereAlyssa Ross2020-01-09
| | | | | I'm not really sure how the line directly after ended up with this, but this line didn't...
* ec2/create-amis.sh: register root device as /dev/xvdaAndrew Childs2019-11-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For the case of blkfront drives, there appears to be no difference between /dev/sda1 and /dev/xvda: the drive always appears as the kernel device /dev/xvda. For the case of nvme drives, the root device typically appears as /dev/nvme0n1. Amazon provides the 'ec2-utils' package for their first party linux ("Amazon Linux"), which configures udev to create symlinks from the provided name to the nvme device name. This name is communicated through nvme "Identify Controller" response, which can be inspected with: nvme id-ctrl --raw-binary /dev/nvme0n1 | cut -c3073-3104 | hexdump -C On Amazon Linux, where the device is attached as "/dev/xvda", this creates: - /dev/xvda -> nvme0n1 - /dev/xvda1 -> nvme0n1p1 On NixOS where the device is attach as "/dev/sda1", this creates: - /dev/sda1 -> nvme0n1 - /dev/sda11 -> nvme0n1p1 This is odd, but not inherently a problem. NixOS unconditionally configures grub to install to `/dev/xvda`, which fails on an instance using nvme storage. With the root device name set to xvda, both blkfront and nvme drives are accessible as /dev/xvda, either directly or by symlink.
* ec2-amis.nix: add 19.09 amisAmineChikhaoui2019-10-28
| | | | | replace /home/deploy -> $HOME to allow running the script from outside the bastion.
* scripts/gce: make image name configurableJohan Thomsen2019-10-25
|
* amazon-image.nix: upload prebuilt imagesAndrew Childs2019-09-05
|
* amazon-image.nix: add hydra-build-products and improve metadataAndrew Childs2019-09-05
|
* amazon-image.nix: default to vpc formatted imagesAndrew Childs2019-09-05
| | | | These can be imported without converison.
* amazon-image.nix: add EFI support, enable by default for aarch64Andrew Childs2019-09-05
|
* mass replace "flip map -> forEach"danbst2019-08-05
| | | | | | | See `forEach`-introduction commit. ``` rg 'flip map ' --files-with-matches | xargs sed -i 's/flip map /forEach /g' ```
* Revert "mass replace "flip map -> foreach""danbst2019-08-05
| | | | This reverts commit 3b0534310c89d04fc3a9c5714b5a4d0f9fb0efca.
* mass replace "flip map -> foreach"danbst2019-07-14
| | | | | | | See `foreach`-introduction commit. ``` rg 'flip map ' --files-with-matches | xargs sed -i 's/flip map /foreach /g' ```
* treewide: Remove usage of isNullDaniel Schaefer2019-04-29
| | | | isNull "is deprecated; just write e == null instead" says the Nix manual
* amazon-image.nix: Resolve failure to include resize2fstalyz2019-03-15
| | | | | | Since 34234dcb511, for resize2fs to be automatically included in initrd, a filesystem needed for boot must be explicitly defined as an ext* type filesystem.
* Merge pull request #44573 from vincentbernat/feature/cloudstackRyan Mulligan2019-02-24
|\ | | | | nixos/cloudstack-image: initial import
| * nixos/cloudstack-image: initial importVincent Bernat2018-11-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cloudstack images are simply using cloud-init. They are not headless as a user usually have access to a console. Otherwise, the difference with Openstack are mostly handled by cloud-init. This is still some minor issues. Notably, there is no non-root user. Other cloud images usually come with a user named after the distribution and with sudo. Would it make sense for NixOS? Cloudstack gives the user the ability to change the password. Cloud-init support for this is imperfect and the set-passwords module should be declared as `- [set-passwords, always]` for this to work. I don't know if there is an easy way to "patch" default cloud-init configuration. However, without a non-root user, this is of no use. Similarly, hostname is usually set through cloud-init using `set_hostname` and `update_hostname` modules. While the patch to declare nixos to cloud-init contains some code to set hostname, the previously mentioned modules are not enabled.
* | Rename `novaImage` to `openstackImage`Antoine Eiche2019-02-11
| | | | | | | | | | | | People don't necessary know `nova` is related to Openstack (it is a component of Openstack). So, it is more explicit to call it `openstackImage`.
* | google-compute-image: make it a module and the size tuneable (#49854)Ding Xiang Fei2018-11-26
|/ | | | | * move GCE system configuration to `google-compute-config.nix` * remove `fetch-ssh-keys` service (disabled in comment)
* create-amis.sh: Change directory for AMIsEelco Dolstra2018-07-24
|
* [bot] nixos/*: remove unused arguments in lambdasvolth2018-07-20
|