Guest User

Untitled

a guest
Feb 6th, 2020
107
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # coresimple.nix
  2. {... }:
  3.  
  4. {
  5. programs = {
  6. git = {
  7. enable = false;
  8. };
  9. };
  10. }
  11.  
  12. #coresimple2.nix
  13. {... }:
  14.  
  15. {
  16.  
  17. imports = [ ./coresimple.nix ];
  18. programs = {};
  19. }
  20.  
  21. # why does the repl show coresimple2 programs as {} instead of with git?
  22. # $ nix repl
  23. # Welcome to Nix version 2.3.2. Type :? for help.
  24.  
  25. # nix-repl> (import ./coresimple2.nix {}).programs
  26. # { }
RAW Paste Data