Commit Graph

231 Commits

Author SHA1 Message Date
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
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
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
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
Lassulus
fb3ee0f618
Merge pull request #156 from usertam/master
README.md: update cross compiling section
2022-05-23 22:51:21 +02:00
Samuel Tam
2cea106bc1
README.md: update cross compiling section 2022-05-24 03:36:56 +08:00
Jörg Thalheim
72a931dfe2
Merge pull request #154 from elsbrock/patch-1
docs: fix description for `-o`
2022-05-22 12:21:02 +01:00
Simon Elsbrock
05c43eb41c
docs: fix wrong sentence for -o 2022-05-17 22:47:23 +02:00
Lassulus
11f97f9713
Merge pull request #153 from tomeon/find-symlinked-executables
Handle "config.filename" output path that is a symlink to a regular file
2022-05-13 18:04:20 +02:00
Matt Schreiber
70b4350553
CI: add nixos-generate logging output assertions
Namely, assert that the last line of output refers to a store path that
is a file or symlink to a file.
2022-05-13 11:45:22 -04:00
Matt Schreiber
3cf3032e81
Resolve links when finding output filename
by s/-type/-xtype/ in the "find" invocation.  Now nixos-generate prints
both regular files and symlinks to regular files (like "run-nixos-vm"
for the "vm" and "vm-nogui" formats).
2022-05-13 11:44:53 -04:00
Lassulus
3cdf22c79b
Merge pull request #152 from nix-community/raw-efi-boot
raw-efi-boot fixes
2022-04-26 19:23:31 +01:00
lassulus
8fa0a1f52b vm-nogui: fix syntax error 2022-04-26 19:09:49 +02:00
lassulus
daa142a20b raw-efi: override build.raw harder 2022-04-26 19:09:36 +02:00
lassulus
db5c176919 raw-efi: add /boot partition 2022-04-26 18:53:24 +02:00
Lassulus
3cc7d08029
Merge pull request #149 from alan-strohm/master
pass specialArgs through to nixosSystem
2022-04-26 12:16:30 +01:00
Alan Strohm
e22916ec84 pass specialArgs through to nixosSystem 2022-04-21 09:43:21 -07:00