Advertisement
Guest User

Untitled

a guest
Feb 16th, 2019
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. $ nix-channel --add https://nixos.org/channels/nixos-unstable nixos-unstable
  2. $ nix-channel --update
  3.  
  4. ###
  5. # Credit: https://stackoverflow.com/a/47571488
  6. nixpkgs.config =
  7. {
  8. # Allow proprietary packages
  9. allowUnfree = true;
  10.  
  11. # Create an alias for the unstable channel
  12. packageOverrides = pkgs:
  13. {
  14. unstable = import <nixos-unstable>
  15. {
  16. # pass the nixpkgs config to the unstable alias
  17. # to ensure `allowUnfree = true;` is propagated:
  18. config = config.nixpkgs.config;
  19. };
  20. };
  21. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement