Skip to content

Instantly share code, notes, and snippets.

@LnL7
Created February 9, 2019 19:55
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 LnL7/ff933be66278582ad9fb85f3adcb496b to your computer and use it in GitHub Desktop.
Save LnL7/ff933be66278582ad9fb85f3adcb496b to your computer and use it in GitHub Desktop.
{ config, lib, pkgs, ... }:
{
imports = [ ./foo.nix ];
_module.args.foo = 42;
}
{ config, lib, pkgs, foo, ... }:
with lib;
{
environment.systemPackages = mkIf (foo == 1) [ pkgs.hello ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment