Skip to content

Commit 6208d1d

Browse files
authored
Merge pull request #362 from TT1882/master
Add install section for NixOS in README.md
2 parents 98cff1d + 312b774 commit 6208d1d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,21 @@ An unofficial Gentoo package is available, using this repository as upstream. It
4141
# emerge --ask net-wireless/rtl8821ce-driver
4242
```
4343

44+
### NixOS
45+
An unofficial nix package is available from [nixpkgs](https://github.com/NixOS/nixpkgs/blob/master/pkgs/os-specific/linux/rtl8821ce/default.nix). It can be installed by adding the following to `/etc/nixos/configuration.nix`:
46+
``` nix
47+
boot.kernelModules = [ "8821ce" ]
48+
boot.extraModulePackages = with config.boot.kernelPackages; [
49+
rtl8821ce
50+
];
51+
```
52+
Then apply the changes:
53+
```
54+
sudo nixos-rebuild switch
55+
```
56+
And reboot.
57+
If you are not using the latest linux kernel the package used will be different. Check the [NixOS packages](https://search.nixos.org/packages?type=packages&query=rtl8821ce) to see if your version is supported.
58+
4459
### Manual installation of driver
4560
In order to install the driver open a terminal in the directory with the source code and execute the following command:
4661
```

0 commit comments

Comments
 (0)