summaryrefslogtreecommitdiffstats
path: root/example/stand-alone
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2022-08-19 08:52:50 +0100
committerGitHub <noreply@github.com>2022-08-19 08:52:50 +0100
commit5bcd94a7ecc55007ff55b8f53664297316dc15a0 (patch)
tree604ac9dbbe507598caf37e4cfb9a7536235b6501 /example/stand-alone
parente97ddb5138a8087895020ffa43e0cbed5af4c3bb (diff)
parentfc568cf797fdc4a726e2d961aa41d0dad1bbd004 (diff)
Merge pull request #12 from nix-community/flag-support
Add flag support
Diffstat (limited to 'example/stand-alone')
-rw-r--r--example/stand-alone/configuration.nix34
-rw-r--r--example/stand-alone/tsp-disk.json22
2 files changed, 28 insertions, 28 deletions
diff --git a/example/stand-alone/configuration.nix b/example/stand-alone/configuration.nix
index 2ee1597..2a15c32 100644
--- a/example/stand-alone/configuration.nix
+++ b/example/stand-alone/configuration.nix
@@ -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)
diff --git a/example/stand-alone/tsp-disk.json b/example/stand-alone/tsp-disk.json
deleted file mode 100644
index 1d82c13..0000000
--- a/example/stand-alone/tsp-disk.json
+++ /dev/null
@@ -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": "/"
- }
- }
- ]
- }
- }
-}
-