Commit Graph

394 Commits

Author SHA1 Message Date
Jörg Thalheim
bb76f39145 iso: default to zstd compression
For most users of nixos-generate zstd will be the better choice as
it will build and boot images much faster. Often users have to rebuild
images a couple of times before they are happy with the result.
NixOS might be better of with xz as it saves download and storage cost
for images.
2024-05-19 13:50:34 +02:00
Jörg Thalheim
722b512eb7
Merge pull request #333 from bam80/patch-1
nixos-generate: fix "specialArgs: command not found"
2024-04-22 12:53:54 +02:00
Andrey Butirsky
80f8f3fe0f
nixos-generate: fix "specialArgs: command not found"
$ nixos-generate --help
/nix/store/...-nixos-generate/bin/.nixos-generate-wrapped: line 25: specialArgs: command not found
Usage: /nix/store/...-nixos-generate/bin/.nixos-generate-wrapped [options]
...
2024-04-22 01:37:04 +03:00
github-actions[bot]
d942db8df8 flake.lock: Update
Flake lock file updates:

• Updated input 'nixlib':
    'github:nix-community/nixpkgs.lib/90b1a963ff84dc532db92f678296ff2499a60a87' (2024-03-31)
  → 'github:nix-community/nixpkgs.lib/3c62b6a12571c9a7f65ab037173ee153d539905f' (2024-04-07)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/e976fa8f49c35cf28496301a1ef2aa23ad576b56' (2024-04-02)
  → 'github:NixOS/nixpkgs/efe8ce06ca261f370d672def5b1e0be300c726e1' (2024-04-07)
2024-04-08 00:48:52 +00:00
github-actions[bot]
0c15e76bed flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/807c549feabce7eddbf259dbdcec9e0600a0660d' (2024-03-29)
  → 'github:NixOS/nixpkgs/e976fa8f49c35cf28496301a1ef2aa23ad576b56' (2024-04-02)
2024-04-04 00:48:40 +00:00
github-actions[bot]
1f4c32ca42 flake.lock: Update
Flake lock file updates:

• Updated input 'nixlib':
    'github:nix-community/nixpkgs.lib/b2a1eeef8c185f6bd27432b053ff09d773244cbc' (2024-03-24)
  → 'github:nix-community/nixpkgs.lib/90b1a963ff84dc532db92f678296ff2499a60a87' (2024-03-31)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/07262b18b97000d16a4bdb003418bd2fb067a932' (2024-03-25)
  → 'github:NixOS/nixpkgs/807c549feabce7eddbf259dbdcec9e0600a0660d' (2024-03-29)
2024-04-01 00:51:20 +00:00
lassulus
63194fceaf
Merge pull request #328 from nix-community/ui-improvement
nixos-generate: switch to new nix build command for better logs
2024-03-28 12:42:21 +01:00
Jörg Thalheim
7998cdd448 nixos-generate: switch to new nix build command for better logs
nix-build doesn't print any logs when performs derivation looks up,
which might look like the build stalled.
2024-03-28 12:24:16 +01:00
github-actions[bot]
38beb364db flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/e1d501922fd7351da4200e1275dfcf5faaad1220' (2024-03-23)
  → 'github:NixOS/nixpkgs/07262b18b97000d16a4bdb003418bd2fb067a932' (2024-03-25)
2024-03-28 00:47:12 +00:00
lassulus
1e2a04b6fd
Merge pull request #326 from a-h/document-filesize
docs: add diskSize flake example
2024-03-27 20:43:11 +01:00
Adrian Hesketh
26d89adbda
docs: add diskSize flake example 2024-03-27 12:07:55 +00:00
lassulus
2b3720c7af
Merge pull request #325 from blaggacao/refactor/make-pkgs-func
refactor/make pkgs func
2024-03-25 21:04:44 +07:00
David
01f1b422e7
refactor: make nixos-generator + /package.nix callPackage-eable 2024-03-25 13:28:47 +01:00
David
89f2a6dc56
fix: add .direnv to gitignore 2024-03-25 13:23:13 +01:00
github-actions[bot]
d3e8145766 flake.lock: Update
Flake lock file updates:

• Updated input 'nixlib':
    'github:nix-community/nixpkgs.lib/fa827dda806c5aa98f454da4c567991ab8ce422c' (2024-03-17)
  → 'github:nix-community/nixpkgs.lib/b2a1eeef8c185f6bd27432b053ff09d773244cbc' (2024-03-24)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/7872526e9c5332274ea5932a0c3270d6e4724f3b' (2024-03-19)
  → 'github:NixOS/nixpkgs/e1d501922fd7351da4200e1275dfcf5faaad1220' (2024-03-23)
2024-03-25 00:48:49 +00:00
lassulus
417a857dfb
Merge pull request #323 from a-h/patch-1
fix: typo, function is called `nixosGenerate` not `nixos-generate`
2024-03-22 18:50:13 +07:00
Adrian Hesketh
abe1d24803
fix: typo, function is called nixosGenerate not nixos-generate
Fixes #267
2024-03-22 09:58:12 +00:00
github-actions[bot]
bf351a252a flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/34ad8c9f29a18b4dd97a9ad40ceb16954f24afe7' (2024-03-17)
  → 'github:NixOS/nixpkgs/7872526e9c5332274ea5932a0c3270d6e4724f3b' (2024-03-19)
2024-03-21 00:48:15 +00:00
github-actions[bot]
e63df01c79 flake.lock: Update
Flake lock file updates:

• Updated input 'nixlib':
    'github:nix-community/nixpkgs.lib/630ebdc047ca96d8126e16bb664c7730dc52f6e6' (2024-03-10)
  → 'github:nix-community/nixpkgs.lib/fa827dda806c5aa98f454da4c567991ab8ce422c' (2024-03-17)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/a0906f14161a5c5792e9883117b9471f5bf6df72' (2024-03-13)
  → 'github:NixOS/nixpkgs/34ad8c9f29a18b4dd97a9ad40ceb16954f24afe7' (2024-03-17)
2024-03-18 00:48:30 +00:00
github-actions[bot]
efd4e38532 flake.lock: Update
Flake lock file updates:

• Updated input 'nixlib':
    'github:nix-community/nixpkgs.lib/7873d84a89ae6e4841528ff7f5697ddcb5bdfe6c' (2024-03-03)
  → 'github:nix-community/nixpkgs.lib/630ebdc047ca96d8126e16bb664c7730dc52f6e6' (2024-03-10)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/43d259f8d726113fac056e8bb17d5ac2dea3e0a8' (2024-03-05)
  → 'github:NixOS/nixpkgs/a0906f14161a5c5792e9883117b9471f5bf6df72' (2024-03-13)
2024-03-14 06:41:03 +00:00
dependabot[bot]
1d9c8cd24e build(deps): bump cachix/install-nix-action from 25 to 26
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 25 to 26.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v25...v26)

---
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>
2024-03-11 13:46:03 +00:00
Gabriel Arazas
bef32a0549 nixosGenerate: fix extraFormats value
It is expected to be a Nix module where this could be a path, function, or an
attribute set.
2024-03-08 08:50:45 +00:00
github-actions[bot]
10e801a76f flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/fa9a51752f1b5de583ad5213eb621be071806663' (2024-03-02)
  → 'github:NixOS/nixpkgs/43d259f8d726113fac056e8bb17d5ac2dea3e0a8' (2024-03-05)
2024-03-07 14:19:18 +00:00
dependabot[bot]
d048d6fc4b build(deps): bump DeterminateSystems/update-flake-lock from 20 to 21
Bumps [DeterminateSystems/update-flake-lock](https://github.com/determinatesystems/update-flake-lock) from 20 to 21.
- [Release notes](https://github.com/determinatesystems/update-flake-lock/releases)
- [Commits](https://github.com/determinatesystems/update-flake-lock/compare/v20...v21)

---
updated-dependencies:
- dependency-name: DeterminateSystems/update-flake-lock
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-04 13:05:27 +00:00
lassulus
c1590ae686
Merge pull request #307 from Bert-Proesmans/patch-1
Set nixos diskSize option only if specialArgs.diskSize exists
2024-03-04 08:29:50 +07:00
github-actions[bot]
1c8ead6df3 flake.lock: Update
Flake lock file updates:

• Updated input 'nixlib':
    'github:nix-community/nixpkgs.lib/479831ed8b3c9c7b80533999f880c7d0bf6a491b' (2024-02-25)
  → 'github:nix-community/nixpkgs.lib/7873d84a89ae6e4841528ff7f5697ddcb5bdfe6c' (2024-03-03)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/d53c2037394da6fe98decca417fc8fda64bf2443' (2024-02-28)
  → 'github:NixOS/nixpkgs/fa9a51752f1b5de583ad5213eb621be071806663' (2024-03-02)
2024-03-04 00:51:45 +00:00
Proesmans Bert
2ba4060480
Set nixos diskSize option only if specialArgs.diskSize exists 2024-03-03 15:43:35 +01:00
mrtnvgr
2c9562e762 feat: add --special-arg option 2024-02-29 17:12:43 +00:00
github-actions[bot]
f34ad8b544 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/9a9dae8f6319600fa9aebde37f340975cab4b8c0' (2024-02-24)
  → 'github:NixOS/nixpkgs/d53c2037394da6fe98decca417fc8fda64bf2443' (2024-02-28)
2024-02-29 00:51:37 +00:00
bri
5b77724069 for containers & kexec, boot.loader.*.enable = lib.mkForce false; 2024-02-26 09:38:40 +00:00
github-actions[bot]
d1dcefb91d flake.lock: Update
Flake lock file updates:

• Updated input 'nixlib':
    'github:nix-community/nixpkgs.lib/e623008d8a46517470e6365505f1a3ce171fa46a' (2024-02-18)
  → 'github:nix-community/nixpkgs.lib/479831ed8b3c9c7b80533999f880c7d0bf6a491b' (2024-02-25)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/b50a77c03d640716296021ad58950b1bb0345799' (2024-02-21)
  → 'github:NixOS/nixpkgs/9a9dae8f6319600fa9aebde37f340975cab4b8c0' (2024-02-24)
2024-02-26 00:52:50 +00:00
github-actions[bot]
f4631dee1a flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/045b51a3ae66f673ed44b5bbd1f4a341d96703bf' (2024-02-18)
  → 'github:NixOS/nixpkgs/b50a77c03d640716296021ad58950b1bb0345799' (2024-02-21)
2024-02-22 00:50:55 +00:00
lassulus
fa146e1a15
Merge pull request #204 from tylerjl/qcow-efi
qcow-efi format with ESP mount and configurable diskSize
2024-02-20 11:11:16 +07:00
lassulus
a3978c8e12 don't clash with image settings in default configuration 2024-02-20 03:52:24 +00:00
github-actions[bot]
b483e6b70d flake.lock: Update
Flake lock file updates:

• Updated input 'nixlib':
    'github:nix-community/nixpkgs.lib/f5af57d3ef9947a70ac86e42695231ac1ad00c25' (2023-09-03)
  → 'github:nix-community/nixpkgs.lib/e623008d8a46517470e6365505f1a3ce171fa46a' (2024-02-18)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/d816b5ab44187a2dd84806630ce77a733724f95f' (2023-09-03)
  → 'github:NixOS/nixpkgs/045b51a3ae66f673ed44b5bbd1f4a341d96703bf' (2024-02-18)
2024-02-20 03:52:24 +00:00
lassulus
0aa24e93f7
Merge pull request #268 from Turmaxx/master
Added Missing Bracket in REAME and
2024-02-14 08:10:59 +07:00
lassulus
3b6bde6b87
Merge pull request #292 from jalseth/master
Add disk-size argument
2024-02-12 15:12:40 +07:00
James Alseth
4c7b914d1f Add disk-size argument
Many formats generate an image only large enough for the generated NixOS
config. This quickly runs out of space for NixOS servers that are updated
over time rather than being redeployed with fresh images.

Signed-off-by: James Alseth <james@jalseth.me>
2024-02-11 11:47:50 -08:00
Physics Enthusiast
843e2f04c7 Fix failing azure builds 2024-02-08 15:13:38 +00:00
Vladimir Pouzanov
13ff43edfb Fix the extension breaking the find query.
In af3d3a7538, filename was renamed to fileExtension and used in find -name. This breaks kexec as it used to have the actual file name glob in there.

Given it's the only file produced it seems safe to just remove the path component.
2024-02-08 11:16:16 +00:00
Vladimir Pouzanov
4d0bc031cc Restore the kexec funtionality 2024-02-08 11:16:16 +00:00
Jörg Thalheim
896f6589db
Merge pull request #284 from JeremiahSecrist/linode-fix
fix: extra install commands require full pathing on linode.nix script
2024-01-24 09:34:21 +01:00
dependabot[bot]
ed8ab00e8d build(deps): bump cachix/install-nix-action from 23 to 25
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 23 to 25.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v23...v25)

---
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>
2024-01-22 13:47:42 +00:00
Jeremiah S
d76f0910af
fix: extra install commands require full pathing 2024-01-18 21:46:09 -05:00
dependabot[bot]
521fb4cdd8 build(deps): bump DeterminateSystems/update-flake-lock from 19 to 20
Bumps [DeterminateSystems/update-flake-lock](https://github.com/determinatesystems/update-flake-lock) from 19 to 20.
- [Release notes](https://github.com/determinatesystems/update-flake-lock/releases)
- [Commits](https://github.com/determinatesystems/update-flake-lock/compare/v19...v20)

---
updated-dependencies:
- dependency-name: DeterminateSystems/update-flake-lock
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-16 10:16:01 +00:00
dependabot[bot]
b6bd1af7f1 build(deps): bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-16 10:13:44 +00:00
Brook
d1c7e9a239 Updated README 2024-01-16 10:10:51 +00:00
dependabot[bot]
a71e0ec4b2 build(deps): bump cachix/install-nix-action from 22 to 23
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 22 to 23.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v22...v23)

---
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>
2024-01-16 10:10:40 +00:00
Jörg Thalheim
903227d439
Merge pull request #283 from nix-community/buildbot-update
Buildbot update
2024-01-16 11:08:27 +01:00
Jörg Thalheim
5e7fe98d48 disable aarch64 in CI for now 2024-01-16 11:00:01 +01:00