aboutsummaryrefslogtreecommitdiffstats
path: root/example/stand-alone/configuration.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2018-09-11 20:42:55 +0200
committermakefu <github@syntax-fehler.de>2018-09-11 20:42:55 +0200
commita16b5dfe64929131984e79df9a1825f0413b1865 (patch)
tree46988654b2448da77a05b4188bc0f719df2d5e81 /example/stand-alone/configuration.nix
parent88f56a0b644dd7bfa8438409bea5377adef6aef4 (diff)
add README,stand-alone example
Diffstat (limited to 'example/stand-alone/configuration.nix')
-rw-r--r--example/stand-alone/configuration.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/example/stand-alone/configuration.nix b/example/stand-alone/configuration.nix
new file mode 100644
index 0000000..2ee1597
--- /dev/null
+++ b/example/stand-alone/configuration.nix
@@ -0,0 +1,17 @@
+{ pkgs, ... }:
+let
+ disko = (builtins.fetchGit {
+ url = https://cgit.lassul.us/disko/;
+ rev = "88f56a0b644dd7bfa8438409bea5377adef6aef4";
+ }) + "/lib";
+ cfg = builtins.fromJSON ./tsp-disk.json;
+in {
+ imports = [
+ (disko.config cfg)
+ ];
+ environment.systemPackages = with pkgs;[
+ (pkgs.writeScriptBin "tsp-create" (disko.create cfg))
+ (pkgs.writeScriptBin "tsp-mount" (disko.mount cfg))
+ ];
+}
+