mirror of
https://github.com/TECHNOFAB11/disko.git
synced 2025-12-11 23:50:05 +01:00
fix standalone example
This commit is contained in:
parent
e123b05ff4
commit
c40b0dc031
2 changed files with 28 additions and 28 deletions
|
|
@ -1,10 +1,32 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, lib, ... }:
|
||||||
let
|
let
|
||||||
disko = (builtins.fetchGit {
|
disko = import (builtins.fetchGit {
|
||||||
url = https://cgit.lassul.us/disko/;
|
url = "https://github.com/nix-community/disko";
|
||||||
rev = "88f56a0b644dd7bfa8438409bea5377adef6aef4";
|
ref = "master";
|
||||||
}) + "/lib";
|
}) {
|
||||||
cfg = builtins.fromJSON ./tsp-disk.json;
|
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 {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
(disko.config cfg)
|
(disko.config cfg)
|
||||||
|
|
|
||||||
|
|
@ -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": "/"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue