Disko: Difference between revisions
imported>Onny mNo edit summary |
imported>Onny Fix nix run remote flake command |
||
Line 54: | Line 54: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Alternativley use a disk layout configuration of a remote repository containing a <code>flake.nix</code> file as an entry point | Alternativley use a disk layout configuration of a remote repository containing a <code>flake.nix</code> file as an entry point. The <code>--arg</code> parameter specifies the target disk <code>/dev/sda</code>. | ||
<syntaxhighlight lang="console"> | <syntaxhighlight lang="console"> | ||
# sudo nix run github:nix-community/disko -- --mode zap_create_mount --flake github:Lassulus/flakes-testing#fnord | # sudo nix run github:nix-community/disko/refactor -- --mode zap_create_mount --flake github:Lassulus/flakes-testing#fnord --arg disks '[ "/dev/sda" ]' | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Flakes support is currently broken in the latest disko release, therefore we use the <code>refactor</code> branch until [https://github.com/nix-community/disko/issues/241 the issue] is fixed. | |||
The commands above requires [[Flake]] features available on your system. | The commands above requires [[Flake]] features available on your system. |