summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2022-08-17 15:28:24 +0200
committerJörg Thalheim <joerg@thalheim.io>2022-08-17 15:28:24 +0200
commitdc0c387628d42704d2fa55f034c1d5b4aa5e7c16 (patch)
tree2bf0095cfeb85ccb9a6705e43535db8c4ed5ff8d /README.md
parent91efad532608b2d5aedc2ce40e8daf5844f1ac74 (diff)
README: fix the example
Diffstat (limited to 'README.md')
-rw-r--r--README.md52
1 files changed, 24 insertions, 28 deletions
diff --git a/README.md b/README.md
index 192129e..3bfe83f 100644
--- a/README.md
+++ b/README.md
@@ -10,39 +10,35 @@ Master Boot Record
------------------
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
{ pkgs, modulesPath, ... }:
let
- disko = builtins.fetchGit {
- url = https://cgit.lassul.us/disko/;
- rev = "88f56a0b644dd7bfa8438409bea5377adef6aef4";
+ disko = pkgs.callPackage (builtins.fetchGit {
+ url = "https://github.com/nix-community/disko";
+ 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 {
imports = [
(modulesPath + "/installer/cd-dvd/installation-cd-minimal.nix")