Refactor modules/features a bit

This commit is contained in:
Jonas Juselius
2021-10-06 11:01:00 +02:00
parent 7226e50139
commit d5a0ebc73e
6 changed files with 45 additions and 25 deletions

View File

@@ -1,7 +1,7 @@
{ pkgs, lib, config, ... }:
with lib;
let
cfg = config.features.k8s.host;
cfg = config.features.host;
mkSANs = host: [
host.name
@@ -96,6 +96,16 @@ let
address = cfg.address;
};
fileSystems = {
"/vol/local-storage/vol1" = {
device = "/vol/vol1";
options = [ "bind" ];
};
"/vol/local-storage/vol2" = {
device = "/vol/vol2";
options = [ "bind" ];
};
};
};
in {
config = configuration;