Created
February 9, 2019 19:55
-
-
Save LnL7/ff933be66278582ad9fb85f3adcb496b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, lib, pkgs, ... }: | |
{ | |
imports = [ ./foo.nix ]; | |
_module.args.foo = 42; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 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