Commit Graph

394 Commits

Author SHA1 Message Date
Lassulus
27670a3084
Merge pull request #210 from nix-community/dependabot/github_actions/cachix/install-nix-action-19
build(deps): bump cachix/install-nix-action from 18 to 19
2023-02-13 19:42:38 +05:30
dependabot[bot]
651f28c5a1
build(deps): bump cachix/install-nix-action from 18 to 19
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 18 to 19.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v18...v19)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-13 13:56:57 +00:00
Oleg Lebedev
b7ed622972
Add aarch64-darwin support 2023-02-11 10:19:09 +11:00
mayl
8d3d0d0cb8
Include wording suggestions
Co-authored-by: Lassulus <github@lassul.us>
2023-02-04 18:40:56 -05:00
Larry May
1e20769d71 Adds customFormat documentation. 2023-01-29 16:05:19 -05:00
Tyler Langlois
7b19ba9c21 Parameterize the configurable disk image size 2023-01-26 10:31:59 -07:00
Tyler Langlois
14cd7ec3fd Merge branch 'master' into qcow-efi 2023-01-26 09:44:11 -07:00
Tyler Langlois
8dca4db8f3 Add mount point for EFI/ESP partition on qcow-efi 2023-01-25 17:03:03 -07:00
bors[bot]
6a5dc1d3d5
Merge #203
203: Fix formats/sd* r=Mic92 a=LegitMagic



Co-authored-by: LegitMagic <76862862+LegitMagic@users.noreply.github.com>
Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
2023-01-25 17:09:41 +00:00
Jörg Thalheim
3bc97dd767 add bors.toml 2023-01-25 18:09:16 +01:00
LegitMagic
4e4a8b5233
formats/sd-aarch64: use nixpkgs import 2023-01-25 10:14:55 -05:00
LegitMagic
003d67f51c
formats/sd-aarch64-installer: use proper installer from nixpkgs 2023-01-18 19:58:38 -05:00
Larry May
5336fdf53d eliminates unnecessary recursion 2023-01-05 20:46:11 -05:00
Larry May
a5b82accc8 enables custom formats with the nixosGenerate function 2023-01-05 20:44:30 -05:00
Tyler Langlois
ca58468f8c Raise qcow-efi disk image size 2023-01-04 21:57:34 -07:00
Tyler Langlois
ebdcef9ced Merge remote-tracking branch 'threefoldtech/qcow-efi' into qcow-efi 2023-01-04 21:46:00 -07:00
Lassulus
30516cb2b0
Merge pull request #184 from blaggacao/fix/module-identity-II
fix: format module identity
2023-01-02 19:04:01 +01:00
Jörg Thalheim
64a96ca862
Merge pull request #199 from vivlim/readme-update
Add some notes to README.md about raw & raw-efi images on hardware.
2022-12-18 09:18:54 +00:00
Viv Lim
7a0100737e Add some notes to README.md about raw & raw-efi images on hardware. 2022-12-18 00:59:58 -08:00
Lassulus
c12beaf760
Merge pull request #198 from vivlim/master
raw-efi: Locate ESP by disk label instead of /dev/vda1
2022-12-18 09:50:11 +01:00
Viv Lim
ac1ffdae0f raw-efi: Locate ESP by disk label instead of /dev/vda1
Locating the ESP via /dev/vda1 fails when booting on hardware.
Also, make the grub timeout configurable on raw + raw-efi.
2022-12-17 23:55:53 -08:00
David Arnold
1f311a13e1
fix: format module identity 2022-11-27 14:23:20 -05:00
Ashraf Fouda
b97311ab98 Adds qcow-efi image
Signed-off-by: Ashraf Fouda <ashraf.m.fouda@gmail.com>
2022-11-22 16:51:18 +02:00
Lassulus
50aeec40f2
Merge pull request #191 from foo-dogsquared/nixosGenerate-add-lib-parameter 2022-11-21 22:14:40 +01:00
Gabriel Arazas
d8db0197da nixosGenerate: add lib parameter 2022-11-20 10:27:35 +08:00
Nathan Henrie
87f6494e9d
Another typo (#189)
* Another typo

* Re-fix typo
2022-11-19 17:45:15 +01:00
Lassulus
02e332e8d0
Merge pull request #188 from n8henrie/patch-1 2022-11-18 17:52:04 +01:00
Nathan Henrie
3f53354a79
Fix typo 2022-11-18 09:46:22 -07:00
lassulus
41f3518bc1 nixos-generate: import format-module directly 2022-10-26 21:33:59 +02:00
lassulus
aec022bf7e flake: use nixos-generate to silence warnings 2022-10-26 21:33:45 +02:00
Lassulus
40ac868e29
Merge pull request #182 from blaggacao/fix/cli-idempotency 2022-10-26 16:07:53 +02:00
David Arnold
20c21b9880
fix: uniquely identiy the format-module
this has the positive side effect that the nixos-generate
binary now also works on configurations
that already import one of the nixos modules

That means, we can use the same cli interface regardless if
the config was pre-produced or is produced by the cli on the fly

fix: #181
2022-10-23 16:07:04 -05:00
David Arnold
d53f2d9aff
refactor: fix erroneus package naming 2022-10-23 14:32:59 -05:00
Lassulus
688db42a1e
Merge pull request #179 from nix-community/dependabot/github_actions/cachix/install-nix-action-18
build(deps): bump cachix/install-nix-action from 17 to 18
2022-10-17 16:20:02 +02:00
dependabot[bot]
126ac9ab94
build(deps): bump cachix/install-nix-action from 17 to 18
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 17 to 18.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v17...v18)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-17 13:07:31 +00:00
Jörg Thalheim
adccd191a0
Merge pull request #173 from alan-strohm/master
nixosGenerate: allow and suggest leaving pkgs set to null
2022-08-17 10:13:36 +01:00
Lassulus
ecef210472
Merge pull request #175 from pveierland/master 2022-08-16 16:49:07 +02:00
Per Magnus Veierland
b990785b69 readme: Add linode format 2022-08-16 14:52:07 +02:00
Per Magnus Veierland
0f1d89a63c formats/linode: Add support for generating linode images
Builds `result/nixos.img.gz` image which can be uploaded and run
directly on Linode without an installation process.

Known working settings when setting up Linode:

Configure two disks:
- Label: /dev/sda   Filesystem: ext4 (from uploaded .img.gz image)
- Label: /dev/sdb   Filesystem: swap

Create configuration:
- VM Mode: Paravirtualization
- Kernel: GRUB 2
- Run Level: Run Default Level
- Memory Limit: Do not set any limits on memory usage
- Block Device Assignment:
- - /dev/sda -> /dev/sda
- - /dev/sdb -> /dev/sdb
- Use custom root: No
- Root device: /dev/sda
- Enable distro helper: No
- Disable updatedb: No
- Enable modules.dep helper: No
- Auto-mount devtmpfs: No
- Auto-configure networking: No

Using information from:
- https://www.linode.com/docs/guides/install-nixos-on-linode/
- https://gist.github.com/nixy/e964240d301e0db513463f11bbb22d26
- https://gist.github.com/nocoolnametom/a359624afce4278f16e2760fe65468cc
2022-08-16 12:25:04 +02:00
Lassulus
2992b43912
Merge pull request #174 from nix-community/qcow-aarch64 2022-08-15 17:48:34 +03:00
lassulus
5b422c3cb0 qcow: enable biosboot only for x86 2022-08-15 08:34:17 +02:00
Alan Strohm
f561d89270 nixosGenerate: allow and suggest leaving pkgs set to null 2022-08-12 21:04:56 -07:00
Lassulus
3323b944d9
Merge pull request #167 from starcraft66/patch-1
Fix lxc-metadata description in readme
2022-07-13 23:45:15 +02:00
Tristan
990766a7bd
Fix lxc-metadata description in readme
GitHub now supports LaTeX rendering in READMEs and the two $ in the description for lxc-metadata caused that field to incorrectly render as LaTeX.
2022-07-13 17:40:15 -04:00
Lassulus
898edde476
Merge pull request #163 from tomeon/system-build-type-change-backcompat
Handle `config.system.build` type change from lazy attrset to submodule
2022-06-22 14:36:02 +02:00
Lassulus
07ea008afc
Merge pull request #162 from tomeon/kexec-bundle-filename-attr
kexec-bundle: define filename pattern
2022-06-22 14:35:24 +02:00
Lassulus
0e6a63cf23
Merge pull request #161 from tomeon/nix-2.7-app-output-schema-fix
Nix >= 2.7 app.<system>.default compat
2022-06-22 14:34:50 +02:00
Matt Schreiber
b34a6ac4e6
No lib.mkForce in system.build.kexec_tarball def'n
on nixpkgs versions prior to the commit that changed
config.system.build's type from a lazy attribute set to a submodule.

Prior to this type change, there is no system.build.kexec_tarball option
declared, so the NixOS module system does not resolve
priorities/overrides in the config.build.kexec_tarball definition.

That is, with lib.mkForce, the config.build.kexec_tarball definition
ends up being something like:

    {
      _type = "override";
      content = <...>;
      priority = 50;
    }

Removing lib.mkForce allows us to successfully and sensibly interpolate
the value (== outPath) of system.build.kexec_tarball in
system.build.kexec_bundle's builder script.

Likewise, no lib.mkOverride for system.build.raw.
2022-06-14 21:32:25 -04:00
Matt Schreiber
d486c0f864
kexec-bundle: define filename pattern 2022-06-14 21:29:37 -04:00
Matt Schreiber
8feb8faa17
Nix >= 2.7 app.<system>.default compat 2022-06-10 20:33:14 -04:00