add flag support

This commit is contained in:
Jörg Thalheim 2022-08-17 17:52:12 +02:00
parent c40b0dc031
commit fc568cf797
4 changed files with 42 additions and 3 deletions

View file

@ -3,11 +3,13 @@
let
# TODO: get rid of NIX_PATH dependency here
pkgs = import <nixpkgs> {};
cfg = import ./config.nix;
#cfg = import ./config-gpt-bios.nix;
in
with import ../lib { inherit (pkgs) lib;};
{
config = config (import ./config.nix);
create = create (import ./config.nix);
mount = mount (import ./config.nix);
config = config cfg;
create = create cfg;
mount = mount cfg;
}