mirror of
https://github.com/nix-community/disko.git
synced 2026-12-02 14:03:28 +01:00
add README,stand-alone example
This commit is contained in:
3 files changed
+110
No files matched your search
@@ -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))
|
||||
];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user