Disko: Difference between revisions

Klinger (talk | contribs)
DHCP (talk | contribs)
m 1) remove unneded sudo: `#` implies sudo 2) fix broken {{file}} template: i see broken {{file}} usage with `|name=|lang=` unusually often...what causes that?
 
(2 intermediate revisions by 2 users not shown)
Line 2: Line 2:
<translate>
<translate>
<!--T:1-->
<!--T:1-->
[https://github.com/nix-community/disko Disko] is a utility and NixOS module for declarative disk partitioning.
<strong>[https://github.com/nix-community/disko Disko]</strong> is a utility and [[NixOS modules|NixOS module]] for declarative disk partitioning.


<!--T:2-->
<!--T:2-->
Line 62: Line 62:
<!--T:6-->
<!--T:6-->
<syntaxhighlight lang="console">
<syntaxhighlight lang="console">
# sudo nix run github:nix-community/disko -- --mode disko ./disko-config.nix
# nix run github:nix-community/disko/latest -- --mode disko ./disko-config.nix
</syntaxhighlight>
</syntaxhighlight>


Line 70: Line 70:
<!--T:8-->
<!--T:8-->
<syntaxhighlight lang="console">
<syntaxhighlight lang="console">
# sudo nix run github:nix-community/disko -- --mode disko --flake github:Lassulus/flakes-testing#fnord
# nix run github:nix-community/disko/latest -- --mode disko --flake github:Lassulus/flakes-testing#fnord
</syntaxhighlight>
</syntaxhighlight>


Line 102: Line 102:
   inputs = {
   inputs = {
     nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
     nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
     disko.url = "github:nix-community/disko";
     disko.url = "github:nix-community/disko/latest";
     disko.inputs.nixpkgs.follows = "nixpkgs";
     disko.inputs.nixpkgs.follows = "nixpkgs";
   };
   };