Skip to content

Instantly share code, notes, and snippets.

@LnL7
Created February 9, 2019 19:55
{ 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