From c40b0dc031f3cb32e86bff1f83760a75fa5c5b44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Fri, 19 Aug 2022 09:47:39 +0200 Subject: fix standalone example --- example/stand-alone/configuration.nix | 34 ++++++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) (limited to 'example/stand-alone/configuration.nix') 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) -- cgit v1.2.3