Make disko config universal

This commit is contained in:
GHOSCHT 2024-03-03 12:15:40 +01:00
parent c50872c6e7
commit fa8354f1f8
Signed by: ghoscht
GPG key ID: 2C2C1C62A5388E82
3 changed files with 4 additions and 4 deletions

View file

@ -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";

View file

@ -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"'
``` ```

View file

@ -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