nixos-config/hardware/base.nix

40 lines
822 B
Nix
Raw Normal View History

2019-10-19 12:55:35 +02:00
{ config, pkgs, ... }:
{
2020-03-13 18:45:29 +01:00
imports = [
./planck.nix
];
boot.initrd.luks.devices = {
root = {
2019-10-19 12:55:35 +02:00
device = "/dev/disk/by-partlabel/nixos";
allowDiscards = true;
};
};
2020-08-15 10:13:58 +02:00
boot.supportedFilesystems = [ "btrfs" "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;
};
}