diff --git a/README.md b/README.md index ebe183e..d9d7dd1 100644 --- a/README.md +++ b/README.md @@ -99,7 +99,7 @@ a disk named /dev/sda, you would run the following command to partition, format and mount the disk. ```console -sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- --mode disko /tmp/disk-config.nix +sudo nix run --refresh disko/latest -- --mode disko /tmp/disk-config.nix ``` ## Related Tools diff --git a/docs/disko-install.md b/docs/disko-install.md index 7a58971..4edba5d 100644 --- a/docs/disko-install.md +++ b/docs/disko-install.md @@ -22,7 +22,7 @@ For a fresh installation, where **disko-install** will handle partitioning and setting up the disk, use the following syntax: ```console -sudo nix run 'github:nix-community/disko#disko-install/latest' -- --flake # --disk +sudo nix run --refresh 'disko/latest#disko-install' -- --flake # --disk ``` 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): ```console -$ sudo nix run 'github:nix-community/disko/latest#disko-install' -- --flake '/tmp/config/etc/nixos#mymachine' --disk main /dev/sda +$ sudo nix run --refresh '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 @@ -126,7 +126,7 @@ new hardware or to prioritize it in your current machine's boot order, use the --write-efi-boot-entries option: ```console -$ sudo nix run 'github:nix-community/disko/latest#disko-install' -- --write-efi-boot-entries --flake '/tmp/config/etc/nixos#mymachine' --disk main /dev/sda +$ sudo nix run --refresh '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 diff --git a/docs/quickstart.md b/docs/quickstart.md index 30d0c89..93c6408 100644 --- a/docs/quickstart.md +++ b/docs/quickstart.md @@ -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.** ```console -sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- --mode disko /tmp/disk-config.nix +sudo nix run --refresh disko/latest -- --mode disko /tmp/disk-config.nix ``` After the command has run, your file system should have been formatted and