Skip to content

Instantly share code, notes, and snippets.

@hyperfekt
Created September 30, 2019 19:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hyperfekt/1d8868a0810cd14e9a656784b1136c87 to your computer and use it in GitHub Desktop.
Save hyperfekt/1d8868a0810cd14e9a656784b1136c87 to your computer and use it in GitHub Desktop.
with import <nixpkgs/lib>;
(evalModules {
modules = [
({ config, ... }: {
options.settings = mkOption {
type = types.attrsOf types.bool;
};
config.settings.bar = true;
config.settings.foo = config.settings.bar;
})
];
}).config.settings.foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment