Disko: Difference between revisions

imported>Onny
mNo edit summary
imported>Onny
mNo edit summary
Line 47: Line 47:


The following command will apply the disk layout specified in the configuration and mount them afterwards. Warning: This will erase all data on the disk.
The following command will apply the disk layout specified in the configuration and mount them afterwards. Warning: This will erase all data on the disk.
{{Warning|The disko commands will erase all existing data on your disk and repartition it according to your config.}}


<syntaxhighlight lang="console">
<syntaxhighlight lang="console">
Line 52: Line 54:
</syntaxhighlight>
</syntaxhighlight>


The command above requires [[Flake]] features available on your system.
Alternativley use a disk layout configuration of a remote repository containing a <code>flake.nix</code> file as an entry point
 
<syntaxhighlight lang="console">
# sudo nix run github:nix-community/disko -- --mode zap_create_mount --flake github:Lassulus/flakes-testing#fnord
</syntaxhighlight>
 
The commands above requires [[Flake]] features available on your system.


To verify both partitions got mounted correctly, run
To verify both partitions got mounted correctly, run