Update presets
parent
60f597b07c
commit
9d3309c6be
@ -1,9 +1,11 @@
|
|||||||
packages: {config, ...}: {
|
packages: {config, ...}: {
|
||||||
environment.systemPackages = with packages; [
|
environment.systemPackages = with packages; [
|
||||||
nixpkgs.amdappsdk # For OpenCL support, at least theoretically...
|
#nixpkgs.amdappsdk # For OpenCL support, at least theoretically...
|
||||||
];
|
];
|
||||||
|
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
videoDrivers = ["ati_unfree"];
|
videoDrivers = [/*"amdgpu-pro"*/ /*"amdgpu"*/ "ati" /*"ati_unfree"*/];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
boot.blacklistedKernelModules = [ "amdgpu" ];
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,3 @@
|
|||||||
|
packages: {config, ...}: {
|
||||||
|
hardware.bluetooth.enable = true;
|
||||||
|
}
|
@ -0,0 +1,10 @@
|
|||||||
|
packages: {config, ...}: {
|
||||||
|
/* FIXME: Switch to using systemd.enableCgroupAccounting in NixOS 18.09; ref https://github.com/NixOS/nixpkgs/pull/36772 */
|
||||||
|
systemd.extraConfig = ''
|
||||||
|
DefaultCPUAccounting=yes
|
||||||
|
DefaultIOAccounting=yes
|
||||||
|
DefaultBlockIOAccounting=yes
|
||||||
|
DefaultMemoryAccounting=yes
|
||||||
|
DefaultTasksAccounting=yes
|
||||||
|
'';
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
packages: {config, pkgs, ...}: {
|
||||||
|
/* The following enables wpa_cli usage, and disables declarative network specification */
|
||||||
|
networking = {
|
||||||
|
wireless = {
|
||||||
|
enable = true;
|
||||||
|
userControlled.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
networkmanager.enable = pkgs.lib.mkForce false;
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.etc."wpa_supplicant.conf".text = "ctrl_interface=/run/wpa_supplicant";
|
||||||
|
}
|
Loading…
Reference in New Issue