mirror of
https://github.com/TECHNOFAB11/disko.git
synced 2026-02-02 17:35:08 +01:00
README.md: put tsp-disk.json before configuration.nix
This is imho the more important configuration of this tool. The configuration.nix is just necessary boiler code.
This commit is contained in:
parent
1eb200a050
commit
7ed3b9ad79
1 changed files with 25 additions and 24 deletions
49
README.md
49
README.md
|
|
@ -10,6 +10,31 @@ 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
|
||||||
```nix
|
```nix
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
let
|
let
|
||||||
|
|
@ -26,30 +51,6 @@ in {
|
||||||
(pkgs.writeScriptBin "tsp-create" (disko.mount cfg))
|
(pkgs.writeScriptBin "tsp-create" (disko.mount cfg))
|
||||||
(pkgs.writeScriptBin "tsp-mount" (disko.mount cfg))
|
(pkgs.writeScriptBin "tsp-mount" (disko.mount cfg))
|
||||||
];
|
];
|
||||||
}
|
|
||||||
```
|
|
||||||
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": "/"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
## Optional: Automatically creates a service which runs at startup to perform the partitioning
|
## Optional: Automatically creates a service which runs at startup to perform the partitioning
|
||||||
#systemd.services.install-to-hd = {
|
#systemd.services.install-to-hd = {
|
||||||
# enable = true;
|
# enable = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue