feat: rearrange nix modules
This commit is contained in:
parent
572d1d43c0
commit
89f6ab94b4
17 changed files with 28 additions and 28 deletions
hardware
42
hardware/base.nix
Normal file
42
hardware/base.nix
Normal file
|
@ -0,0 +1,42 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./planck.nix
|
||||
];
|
||||
|
||||
boot.initrd.luks.devices = {
|
||||
root = {
|
||||
device = "/dev/disk/by-partlabel/nixos";
|
||||
allowDiscards = true;
|
||||
};
|
||||
};
|
||||
boot.supportedFilesystems = [ "ntfs" ];
|
||||
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;
|
||||
};
|
||||
|
||||
# USB devices
|
||||
hardware.u2f.enable = true;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue