-
Notifications
You must be signed in to change notification settings - Fork 3
/
channels.nix
32 lines (30 loc) · 858 Bytes
/
channels.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ config, pkgs, lib, ... }:
{
config.nixpkgs.config =
{
# Allow proprietary packages
allowUnfree = true;
# Create an alias for the unstable channel
packageOverrides = pkgs:
{
stable = import <nixos-stable>
{
# pass the nixpkgs config to the stable alias
# to ensure `allowUnfree = true;` is propogated:
config = config.nixpkgs.config;
};
unstable = import <nixpkgs-unstable>
{
# pass the nixpkgs config to the unstable alias
# to ensure `allowUnfree = true;` is propagated:
config = config.nixpkgs.config;
};
unstable-small = import <nixos-unstable-small>
{
# pass the nixpkgs config to the unstable alias
# to ensure `allowUnfree = true;` is propagated:
config = config.nixpkgs.config;
};
};
};
}