about summary refs log tree commit diff
path: root/nixos/modules/virtualisation/google-compute-image.nix
Commit message (Collapse)AuthorAge
* treewide: Remove usage of isNullDaniel Schaefer2019-04-29
| | | | isNull "is deprecated; just write e == null instead" says the Nix manual
* 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)
* treewide: systemd timeout arguments to use infinity instead of 0 (#50934)Craig Younkins2018-11-25
| | | Fixes https://github.com/NixOS/nixpkgs/issues/49700
* nixos/google-network-daemon: systemd job type simple instead of oneshot (#49692)Sarah Brofeldt2018-11-03
|
* google-compute-engine: 20180510 -> 20180905zimbatm2018-09-26
| | | | The list of corresponding NixOS services are also updated
* reewide: Purge all uses `stdenv.system` and top-level `system`John Ericson2018-08-30
| | | | It is deprecated and will be removed after 18.09.
* avoid redundant rm callsAmineChikhaoui2018-06-04
|
* revert 4a86f8c9abd99b880b8a9c3609d330c7ff398ad5 and properly removeAmineChikhaoui2018-05-31
| | | | the temporary ssh host keys file/directory.
* barf if pulling the ssh host keys failsAmineChikhaoui2018-04-28
|
* remove the entire temporary directoryAmineChikhaoui2018-04-28
|
* pull the ssh host keys from the metadata service as expected by NixOps.AmineChikhaoui2018-04-28
| | | | Issues: #38623 https://github.com/NixOS/nixops/issues/930.
* google-compute-image: provide correct MTUWout Mertens2018-04-08
|
* Update create-gce.sh script. Set default option for GCE images to disable ↵Rob Vermaas2018-04-06
| | | | | | host key replacement by service. (cherry picked from commit 748d96ffa3c51c3127bcdf23a88d54afad6406e9)
* gce: needs bigger diskSizeRob Vermaas2018-04-05
| | | | (cherry picked from commit ac3437aa061e80604d28aa3dd09013417f3193b1)
* nixos: rename config.system.nixos* -> config.system.nixos.*Jan Malakhovski2018-02-18
|
* Merge pull request #33423 from AmineChikhaoui/gce-ssh-keysRob Vermaas2018-01-18
|\ | | | | Fix ssh keys retrieval in GCE instances
| * Fixes https://github.com/NixOS/nixops/issues/756.AmineChikhaoui2018-01-04
| | | | | | | | | | | | Seems the google compute metadata service behavior changed a bit recently which caused this issue ? see: https://cloud.google.com/compute/docs/storing-retrieving-metadata
* | nixos: introduce boot.growPartition (#33521)zimbatm2018-01-06
|/ | | Move it from being a profile
* google-instance-setup: add openssh to pathRob Vermaas2017-09-15
|
* google-compute-image module: use google serviceszimbatm2017-07-15
| | | | | | | | | | | | | | | This adds a few google-specific services to setup the machine. Accounts are now dynamically created using the google-accounts-daemon, which allows to click on the "SSH" button in the console and have it working. The NixOS image now supports the userdata startup and shutdown scripts. Misc: * add all the google services from https://github.com/GoogleCloudPlatform/compute-image-packages/tree/master/google_compute_engine_init/systemd * add udev rules for disk labels * synched sysctl rules with https://github.com/GoogleCloudPlatform/compute-image-packages/blob/master/google_config/sysctl/11-gce-network-security.conf
* GCE-service: Update fetch-ssh-keys API usageMateusz Kowalczyk2017-05-20
|
* google-compute-image: append .raw.tar.gz suffixJörg Thalheim2017-04-26
| | | | This restores behavior of image generation before f1708a9d7d79e2bf2961fc648625578b23b3460f
* google-compute-image: switch to use the common make-disk-image.nixDan Peebles2017-04-24
|
* Make GCE image as small as possible and incorporate partition growingClemens Fruhwirth2017-03-27
| | | | | | | | | when users of nixops specified a larger root disk via deployment.gce.rootDiskSize 1GB is the smallest possible size as GCP doesn't support fractions of GB for RAW images, see https://cloud.google.com/compute/docs/images/import-existing-image#requirements
* google-compute-image: fix Yama LSM option conflictc74d2017-03-26
| | | | | | | | | | | | | | | | | Having fixed the Google Compute Engine image build process's copying of store paths in PR #24264, I ran `nixos-rebuild --upgrade switch`... and the GCE image broke again, because it sets the NixOS configuration option for the sysctl variable `kernel.yama.ptrace_scope` to `mkDefault "1"`, i.e., with override priority 1000, and now the `sysctl` module sets the same option to `mkDefault "0"` (this was changed in commit 86721a5f78718caf10c578e9501f8b4d19c0eb44). This patch raises the override priority of the Google Compute Engine image configuration's definition of the Yama sysctl option to 500 (still lower than the priority of an unmodified option definition). I have tested that this patch allows the Google Compute Engine image to again build successfully for me.
* google-compute-image: copy store paths with rsyncc74d2017-03-24
| | | | | | | | | | | | | | | In `nixos/modules/virtualisation/google-compute-image.nix`, copy store paths with `rsync -a` rather than `cp -prd`, because `rsync` seems better able to handle the hard-links that may be present in the store, whereas `cp` may fail to copy them. I have tested that the Google Compute Engine image builds successfully for me with this patch, whereas it did not without this patch. This is the same fix applied for Azure images in commit 097ef6e435d5b3fcde92e67abbaaaaaf05c0723d. Fixes #23973.
* google-compute-image.nix: fix evaluation failureDan Peebles2017-02-22
|
* ntp: make timesyncd the new defaultJörg Thalheim2016-12-17
| | | | | | | | - most nixos user only require time synchronisation, while ntpd implements a battery-included ntp server (1,215 LOCs of C-Code vs 64,302) - timesyncd support ntp server per interface (if configured through dhcp for instance) - timesyncd is already included in the systemd package, switching to it would save a little disk space (1,5M)
* openssh: support prohibit-password for permitRootLoginAnmol Sethi2016-10-01
| | | | | | See https://github.com/openssh/openssh-portable/commit/1dc8d93ce69d6565747eb44446ed117187621b26 I also made it the default.
* treewide: deprecate ip-up.target (#18319)Alexander Ried2016-09-10
| | | | | Systemd upstream provides targets for networking. This also includes a target network-online.target. In this PR I remove / replace most occurrences since some of them were even wrong and could delay startup.
* treewide: Use makeBinPathTuomas Tynkkynen2016-08-23
|
* Remove boot.loader.grub.timeout and boot.loader.gummiboot.timeoutEelco Dolstra2016-05-25
| | | | There is a generic boot.loader.timeout option.
* treewide: Use correct output in ${config.nix.package}/binTuomas Tynkkynen2016-04-25
|
* nixos: introduce system.nixosLabel option and use it where appropriateJan Malakhovski2016-01-08
| | | | | | | | | | | | | | Setting nixosVersion to something custom is useful for meaningful GRUB menus and /nix/store paths, but actuallly changing it rebulids the whole system path (because of `nixos-version` script and manual pages). Also, changing it is not a particularly good idea because you can then be differentitated from other NixOS users by a lot of programs that read /etc/os-release. This patch introduces an alternative option that does all you want from nixosVersion, but rebuilds only the very top system level and /etc while using your label in the names of system /nix/store paths, GRUB and other boot loaders' menus, getty greetings and so on.
* nixos: rename some outputs for better discoverability in /nix/storeJan Malakhovski2015-09-18
|
* Merge pull request #6732 from oconnorr/masterWout Mertens2015-06-02
|\ | | | | Use mktemp to create temporary files to hold ssh host keys and authorized keys
| * Remove use of && in fetch-ssh-keys service.Russell O'Connor2015-05-29
| | | | | | | | Scripts are run with -e so will abort when a command fails.
| * [GCE] Put temp files for fetch-ssh-keys service in /runRussell O'Connor2015-05-29
| |
| * Use mktemp to create temporary files to hold ssh host keys and authorized ↵Russell O'Connor2015-05-29
| | | | | | | | keys when downloading them from the metadata server.
* | Revert "Set boot.loader.grub.configurationLimit to 1 for gce/azure/amazon ↵William A. Kennington III2015-05-29
|/ | | | | | | | | | images. Setting to 0 results in empty grub config." The issue was that grub was not building the default entry which would leave systems unbootable. This can now be safely reverted as the default entry is being built once again. This reverts commit fd1fb0403c406d1c3aca07735bb247e0643bdb0d.
* Set boot.loader.grub.configurationLimit to 1 for gce/azure/amazon images. ↵Rob Vermaas2015-05-29
| | | | Setting to 0 results in empty grub config.
* GCE image: Remove some unnecessary lib prefixes.Rob Vermaas2015-03-26
|
* GCE image: Add some recommended sysctl settings. Disable OS level firewall ↵Rob Vermaas2015-03-26
| | | | by default for GCE images (GCE provides external firewall). Disable passwordAuthentication. Related to issue #6991.
* Only start fetch-keys for GCE image after ip-up.Rob Vermaas2015-02-27
|
* GCE image: Pass header to metadata service calls.Rob Vermaas2015-02-26
|
* ParanoiaEelco Dolstra2015-01-15
|
* google-compute-image.nix: Try to download all SSH host keys from metadata ↵Russell O'Connor2015-01-06
| | | | server.
* Generate SSH host public key from the private key.Russell O'Connor2015-01-05
|
* Call wget directly in fetch-ssh-keys service.Russell O'Connor2015-01-05
|
* google-compute-image.nix: unconditionally clean up /root/key.pub ↵Russell O'Connor2015-01-05
| | | | /root/authorized-keys-metadata