mirror of
https://github.com/TECHNOFAB11/disko.git
synced 2025-12-12 16:10:03 +01:00
18 lines
415 B
Nix
18 lines
415 B
Nix
|
|
{ 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))
|
||
|
|
];
|
||
|
|
}
|
||
|
|
|