fix standalone example

This commit is contained in:
Jörg Thalheim 2022-08-19 09:47:39 +02:00
parent e123b05ff4
commit c40b0dc031
2 changed files with 28 additions and 28 deletions

View File

@ -1,10 +1,32 @@
{ pkgs, ... }:
{ pkgs, lib, ... }:
let
disko = (builtins.fetchGit {
url = https://cgit.lassul.us/disko/;
rev = "88f56a0b644dd7bfa8438409bea5377adef6aef4";
}) + "/lib";
cfg = builtins.fromJSON ./tsp-disk.json;
disko = import (builtins.fetchGit {
url = "https://github.com/nix-community/disko";
ref = "master";
}) {
inherit lib;
};
cfg = {
type = "devices";
content = {
sda = {
type = "table";
format = "msdos";
partitions = [{
type = "partition";
part-type = "primary";
start = "1M";
end = "100%";
bootable = true;
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
}];
};
};
};
in {
imports = [
(disko.config cfg)

View File

@ -1,22 +0,0 @@
{
"type": "devices",
"content": {
"sda": {
"type": "table",
"format": "msdos",
"partitions": [
{ "type": "partition",
"start": "1M",
"end": "100%",
"bootable": true,
"content": {
"type": "filesystem",
"format": "ext4",
"mountpoint": "/"
}
}
]
}
}
}