40 lines
815 B
Nix
40 lines
815 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
./planck.nix
|
|
];
|
|
|
|
boot.initrd.luks.devices = {
|
|
root = {
|
|
device = "/dev/disk/by-partlabel/nixos";
|
|
allowDiscards = true;
|
|
};
|
|
};
|
|
boot.supportedFilesystems = [ "btrfs" ];
|
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
boot.loader.systemd-boot.enable = true;
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
services.smartd.enable = true;
|
|
services.smartd.notifications.x11.enable = true;
|
|
|
|
# Bluetooth
|
|
hardware.bluetooth.enable = true;
|
|
hardware.bluetooth.config = {
|
|
General = {
|
|
Enable = "Source,Sink,Media,Socket";
|
|
};
|
|
};
|
|
|
|
# Sound.
|
|
sound.enable = true;
|
|
hardware.pulseaudio = {
|
|
enable = true;
|
|
support32Bit = true;
|
|
extraModules = [ pkgs.pulseaudio-modules-bt ];
|
|
package = pkgs.pulseaudioFull;
|
|
};
|
|
}
|
|
|