Make disko config universal
This commit is contained in:
parent
c50872c6e7
commit
fa8354f1f8
3 changed files with 4 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
||||||
{
|
{device ? throw "Set this to your disk device, e.g. /dev/sda", ...}: {
|
||||||
disko.devices = {
|
disko.devices = {
|
||||||
disk.main = {
|
disk.main = {
|
||||||
device = "/dev/nvme0n1";
|
inherit device;
|
||||||
type = "disk";
|
type = "disk";
|
||||||
content = {
|
content = {
|
||||||
type = "gpt";
|
type = "gpt";
|
|
@ -3,5 +3,5 @@
|
||||||
## Drive Formatting
|
## Drive Formatting
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko -- --mode disko ./disko.nix
|
sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko -- --mode disko ../../disko/btrfs-swap.nix --arg device '"/dev/nvme0n1"'
|
||||||
```
|
```
|
||||||
|
|
|
@ -13,7 +13,7 @@ in {
|
||||||
inputs.disko.nixosModules.default
|
inputs.disko.nixosModules.default
|
||||||
|
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./disko.nix
|
(import ../../disko/btrfs-swap.nix {device = "/dev/nvme0n1";})
|
||||||
|
|
||||||
../common/global
|
../common/global
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue