Compare commits

..
2 Commits
Author SHA1 Message Date
Felix Uhl ff0a471763 release: v1.8.2 2024-10-11 21:02:24 +02:00
Felix Uhl 9788e5d458 release: Fix release script 2024-10-11 20:56:18 +02:00
5 changed files with 15 additions and 7 deletions

No files matched your search

+1 -1
View File
@@ -99,7 +99,7 @@ a disk named /dev/sda, you would run the following command to partition, format
and mount the disk. and mount the disk.
```console ```console
sudo nix run --refresh disko/latest -- --mode disko /tmp/disk-config.nix sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- --mode disko /tmp/disk-config.nix
``` ```
## Related Tools ## Related Tools
+3 -3
View File
@@ -22,7 +22,7 @@ For a fresh installation, where **disko-install** will handle partitioning and
setting up the disk, use the following syntax: setting up the disk, use the following syntax:
```console ```console
sudo nix run --refresh 'disko/latest#disko-install' -- --flake <flake-url>#<flake-attr> --disk <disk-name> <disk-device> sudo nix run 'github:nix-community/disko#disko-install/latest' -- --flake <flake-url>#<flake-attr> --disk <disk-name> <disk-device>
``` ```
Example: Example:
@@ -107,7 +107,7 @@ nvme0n1 259:0 0 1.8T 0 disk
In our example, we want to install to a USB-stick (/dev/sda): In our example, we want to install to a USB-stick (/dev/sda):
```console ```console
$ sudo nix run --refresh 'disko/latest#disko-install' -- --flake '/tmp/config/etc/nixos#mymachine' --disk main /dev/sda $ sudo nix run 'github:nix-community/disko/latest#disko-install' -- --flake '/tmp/config/etc/nixos#mymachine' --disk main /dev/sda
``` ```
Afterwards you can test your USB-stick by either selecting during the boot or Afterwards you can test your USB-stick by either selecting during the boot or
@@ -126,7 +126,7 @@ new hardware or to prioritize it in your current machine's boot order, use the
--write-efi-boot-entries option: --write-efi-boot-entries option:
```console ```console
$ sudo nix run --refresh 'disko/latest#disko-install' -- --write-efi-boot-entries --flake '/tmp/config/etc/nixos#mymachine' --disk main /dev/sda $ sudo nix run 'github:nix-community/disko/latest#disko-install' -- --write-efi-boot-entries --flake '/tmp/config/etc/nixos#mymachine' --disk main /dev/sda
``` ```
This command installs NixOS with **disko-install** and sets the newly installed This command installs NixOS with **disko-install** and sets the newly installed
+1 -1
View File
@@ -129,7 +129,7 @@ The following step will partition and format your disk, and mount it to `/mnt`.
**Please note: This will erase any existing data on your disk.** **Please note: This will erase any existing data on your disk.**
```console ```console
sudo nix run --refresh disko/latest -- --mode disko /tmp/disk-config.nix sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- --mode disko /tmp/disk-config.nix
``` ```
After the command has run, your file system should have been formatted and After the command has run, your file system should have been formatted and
+9 -1
View File
@@ -48,10 +48,18 @@ echo "{ version = \"$version\"; released = true; }" > version.nix
# Commit and tag the release # Commit and tag the release
git commit -am "release: v$version" git commit -am "release: v$version"
git tag -a "v$version" -m "release: v$version" git tag -a "v$version" -m "release: v$version"
git tag -d "latest"
git tag -a "latest" -m "release: v$version" git tag -a "latest" -m "release: v$version"
# a revsion suffix when run from the tagged release commit # a revsion suffix when run from the tagged release commit
echo "{ version = \"$version\"; released = false; }" > version.nix echo "{ version = \"$version\"; released = false; }" > version.nix
git commit -am "release: reset released flag" git commit -am "release: reset released flag"
echo "now run 'git push --tags origin master'" echo "Release was prepared successfully!"
echo "To push the release, run the following command:"
echo
echo " git push origin master v$version && git push --force latest"
echo
echo "After that, create a release on GitHub:"
echo
echo " https://github.com/nix-community/disko/releases/new"
+1 -1
View File
@@ -1 +1 @@
{ version = "1.8.0"; released = false; } { version = "1.8.2"; released = true; }