summaryrefslogtreecommitdiffstats
path: root/example/stand-alone/configuration.nix
blob: 2ee15970850aa8b609f23579dab2349db0b6ef65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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))
  ];
}