Commit Graph

318 Commits

Author SHA1 Message Date
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
lassulus
b0326ae4f0 formats: init docker 2022-04-19 19:09:35 +02:00
Jörg Thalheim
adeb359bad
Merge pull request #146 from nix-community/faq
README: add FAQ section
2022-04-13 12:31:06 +01:00
lassulus
9e7c8e28f0 README: add FAQ section 2022-04-13 13:03:24 +02:00
Lassulus
621bf81b3d
Merge pull request #145 from nix-community/dependabot/github_actions/cachix/install-nix-action-17
Bump cachix/install-nix-action from 16 to 17
2022-04-11 14:26:44 +01:00
dependabot[bot]
67c1de5b18
Bump cachix/install-nix-action from 16 to 17
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 16 to 17.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v16...v17)

---
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-04-11 13:04:59 +00:00
lassulus
117ed432a4 kexec: fix kexec_tarball harder 2022-04-09 18:49:40 +02:00
Lassulus
f558711174
Merge pull request #135 from nix-community/vm-nogui-resize
formats vm-nogui: resize only if /dev/tty exists
2022-04-08 13:45:36 +01:00
Lassulus
788a310a62
Merge pull request #143 from nix-community/kexec-bundle
kexec-bundle: get kexec_tarball from module system
2022-04-08 13:45:23 +01:00
lassulus
d9de54155c kexec-bundle: get kexec_tarball from module system 2022-03-29 10:13:03 +02:00
Jörg Thalheim
9f56b704ff
Merge pull request #138 from Pacman99/flake-extendModules
nixos-generate: use extendModules for flakes
2022-03-17 12:45:42 +00:00
Lassulus
0d02820bcd
Merge pull request #140 from nix-community/kexec
formats kexec: fix mutliple definition
2022-03-16 14:37:29 +01:00
lassulus
85014f358b formats kexec: fix multiple definition 2022-03-16 13:24:18 +01:00
Jörg Thalheim
aa5e966498
Merge pull request #139 from nix-community/dependabot/github_actions/actions/checkout-3
Bump actions/checkout from 2 to 3
2022-03-07 13:09:44 +00:00