config: get rid of impure eval
This commit is contained in:
12
nixosModules/clanCore/options.nix
Normal file
12
nixosModules/clanCore/options.nix
Normal 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`
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user