config: get rid of impure eval

This commit is contained in:
Jörg Thalheim
2023-09-22 14:29:25 +02:00
parent 56cd9d1cf4
commit 51e8da2a74
4 changed files with 43 additions and 34 deletions

View File

@@ -0,0 +1,12 @@
{ pkgs, options, lib, ... }: {
options.clanCore.optionsNix = lib.mkOption {
type = lib.types.raw;
internal = true;
readOnly = true;
default = (pkgs.nixosOptionsDoc { inherit options; }).optionsNix;
defaultText = "optionsNix";
description = ''
This is to export nixos options used for `clan config`
'';
};
}