mirror of
https://github.com/TECHNOFAB11/disko.git
synced 2025-12-11 23:50:05 +01:00
README: fold installation methods
This commit is contained in:
parent
107b0ed59f
commit
a3bef46beb
1 changed files with 14 additions and 8 deletions
22
README.md
22
README.md
|
|
@ -48,7 +48,8 @@ TODO: output of the cli --help
|
||||||
|
|
||||||
You can use the NixOS module in one of the following ways:
|
You can use the NixOS module in one of the following ways:
|
||||||
|
|
||||||
### Flakes (Current recommendation)
|
<details>
|
||||||
|
<summary>Flakes (Current recommendation)</summary>
|
||||||
|
|
||||||
If you use nix flakes support:
|
If you use nix flakes support:
|
||||||
|
|
||||||
|
|
@ -70,9 +71,11 @@ If you use nix flakes support:
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
</details>
|
||||||
### [niv](https://github.com/nmattia/niv)
|
<details>
|
||||||
First add it to niv:
|
<summary>niv</summary>
|
||||||
|
|
||||||
|
First add it to [niv](https://github.com/nmattia/niv):
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ niv add nix-community/disko
|
$ niv add nix-community/disko
|
||||||
|
|
@ -85,8 +88,9 @@ $ niv add nix-community/disko
|
||||||
imports = [ "${(import ./nix/sources.nix).disko}/modules/disko.nix" ];
|
imports = [ "${(import ./nix/sources.nix).disko}/modules/disko.nix" ];
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
</details>
|
||||||
### nix-channel
|
<details>
|
||||||
|
<summary>nix-channel</summary>
|
||||||
|
|
||||||
As root run:
|
As root run:
|
||||||
|
|
||||||
|
|
@ -102,8 +106,9 @@ $ nix-channel --update
|
||||||
imports = [ <disko/modules/disko.nix> ];
|
imports = [ <disko/modules/disko.nix> ];
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
</details>
|
||||||
### fetchTarball
|
<details>
|
||||||
|
<summary>fetchTarball</summary>
|
||||||
|
|
||||||
Add the following to your configuration.nix:
|
Add the following to your configuration.nix:
|
||||||
|
|
||||||
|
|
@ -129,6 +134,7 @@ $ nix-channel --update
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
</details>
|
||||||
|
|
||||||
## Using the NixOS module
|
## Using the NixOS module
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue