2021-11-05 07:06:08 -07:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
2023-05-16 22:40:08 -07:00
|
|
|
let has-secret-files = hasAttr "files" config.fudo.secrets;
|
2021-11-05 07:06:08 -07:00
|
|
|
in {
|
|
|
|
config.instance = mkIf has-secret-files {
|
2023-05-16 22:40:08 -07:00
|
|
|
# TODO: This has a newline, I think...
|
2021-11-05 07:06:08 -07:00
|
|
|
build-seed = builtins.readFile config.fudo.secrets.files.build-seed;
|
|
|
|
};
|
|
|
|
}
|