Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ nix-channel --add https://nixos.org/channels/nixos-unstable nixos-unstable
- $ nix-channel --update
- ###
- # Credit: https://stackoverflow.com/a/47571488
- nixpkgs.config =
- {
- # Allow proprietary packages
- allowUnfree = true;
- # Create an alias for the unstable channel
- packageOverrides = pkgs:
- {
- unstable = import <nixos-unstable>
- {
- # pass the nixpkgs config to the unstable alias
- # to ensure `allowUnfree = true;` is propagated:
- config = config.nixpkgs.config;
- };
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement