mirror of
https://github.com/TECHNOFAB11/disko.git
synced 2025-12-11 23:50:05 +01:00
reimplement disko using the nixos type system
This should make the code cleaner, more robust and errors should be clearer. we also changed the configuration format a bit.
This commit is contained in:
parent
adf901d581
commit
dcb0c42857
11 changed files with 1545 additions and 534 deletions
|
|
@ -17,7 +17,7 @@
|
|||
};
|
||||
tsp-create = pkgs.writeScript "create" ((pkgs.callPackage ../. { }).create disko-config);
|
||||
tsp-mount = pkgs.writeScript "mount" ((pkgs.callPackage ../. { }).mount disko-config);
|
||||
num-disks = builtins.length (builtins.filter (x: builtins.match "vd." x == [ ]) (lib.attrNames disko-config.content));
|
||||
num-disks = builtins.length (lib.attrNames disko-config.disk);
|
||||
in
|
||||
makeTest' {
|
||||
name = "disko";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue