Advertisement
Guest User

Untitled

a guest
Feb 6th, 2020
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  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. # { }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement