Skip to content

Instantly share code, notes, and snippets.

@grahamc
Forked from Taeradan/default.nix
Last active March 25, 2017 01:10
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 grahamc/031fbaa9e92c33cc422008a6f5db664f to your computer and use it in GitHub Desktop.
Save grahamc/031fbaa9e92c33cc422008a6f5db664f to your computer and use it in GitHub Desktop.
trying conditional imports
{ config, lib, pkgs, ... }:
let
inherit (lib) mkIf mkMerge mkThenElse;
cfg = config.r6d.config-generator;
computers = config.r6d.computers;
profiles = config.r6d.profiles;
in
{
config = mkIf true {
imports = [
./adminsys.nix
];
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment