nixos-config/common/base-hardware.nix

39 lines
824 B
Nix
Raw Normal View History

2019-10-19 12:55:35 +02:00
{ config, pkgs, ... }:
{
boot.initrd.luks.devices = {
root = {
2019-10-19 12:55:35 +02:00
device = "/dev/disk/by-partlabel/nixos";
allowDiscards = true;
};
};
2020-01-19 10:46:39 +01:00
boot.supportedFilesystems = [ "ntfs" ];
2019-10-19 12:55:35 +02:00
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
2020-02-15 10:46:07 +01:00
services.smartd.enable = true;
services.smartd.notifications.x11.enable = true;
2019-10-19 12:55:35 +02:00
# Bluetooth
hardware.bluetooth.enable = true;
2019-12-12 15:37:07 +01:00
hardware.bluetooth.config = {
General = {
Enable = "Source,Sink,Media,Socket";
};
};
2019-10-19 12:55:35 +02:00
# Sound.
sound.enable = true;
hardware.pulseaudio = {
enable = true;
support32Bit = true;
extraModules = [ pkgs.pulseaudio-modules-bt ];
package = pkgs.pulseaudioFull;
};
# USB devices
hardware.u2f.enable = true;
}