mirror of
https://github.com/TECHNOFAB11/disko.git
synced 2025-12-12 16:10:03 +01:00
README: fix the example
This commit is contained in:
parent
91efad5326
commit
dc0c387628
1 changed files with 24 additions and 28 deletions
52
README.md
52
README.md
|
|
@ -10,39 +10,35 @@ Master Boot Record
|
||||||
------------------
|
------------------
|
||||||
This is how your iso configuation may look like
|
This is how your iso configuation may look like
|
||||||
|
|
||||||
/etc/nixos/tsp-disk.json (TODO: find the correct disk)
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"type": "devices",
|
|
||||||
"content": {
|
|
||||||
"sda": {
|
|
||||||
"type": "table",
|
|
||||||
"format": "msdos",
|
|
||||||
"partitions": [{
|
|
||||||
"type": "partition",
|
|
||||||
"start": "1M",
|
|
||||||
"end": "100%",
|
|
||||||
"bootable": true,
|
|
||||||
"content": {
|
|
||||||
"type": "filesystem",
|
|
||||||
"format": "ext4",
|
|
||||||
"mountpoint": "/"
|
|
||||||
}
|
|
||||||
}]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
/etc/nixos/configuration.nix
|
/etc/nixos/configuration.nix
|
||||||
```nix
|
```nix
|
||||||
{ pkgs, modulesPath, ... }:
|
{ pkgs, modulesPath, ... }:
|
||||||
let
|
let
|
||||||
disko = builtins.fetchGit {
|
disko = pkgs.callPackage (builtins.fetchGit {
|
||||||
url = https://cgit.lassul.us/disko/;
|
url = "https://github.com/nix-community/disko";
|
||||||
rev = "88f56a0b644dd7bfa8438409bea5377adef6aef4";
|
ref = "master";
|
||||||
|
}) {};
|
||||||
|
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 = "/";
|
||||||
|
};
|
||||||
|
}];
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
cfg = builtins.fromJSON ./tsp-disk.json;
|
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
(modulesPath + "/installer/cd-dvd/installation-cd-minimal.nix")
|
(modulesPath + "/installer/cd-dvd/installation-cd-minimal.nix")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue