misc: Add everything
This commit is contained in:
5
modules/hardware/bluetooth.nix
Normal file
5
modules/hardware/bluetooth.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
hardware.bluetooth.enable = true;
|
||||
}
|
||||
37
modules/hardware/generic.nix
Normal file
37
modules/hardware/generic.nix
Normal file
@@ -0,0 +1,37 @@
|
||||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
# NOTE: This assumes that the devices are x86_64 (cough i686 UEFI cough)
|
||||
hardware = {
|
||||
enableRedistributableFirmware = true;
|
||||
# This is a Pipewire household!
|
||||
pulseaudio.enable = false;
|
||||
|
||||
opengl = {
|
||||
enable = true;
|
||||
driSupport32Bit = true;
|
||||
driSupport = true;
|
||||
extraPackages = with pkgs; [ vaapiVdpau libvdpau-va-gl ];
|
||||
};
|
||||
|
||||
# Only a subset of my devices have bluetooth
|
||||
#bluetooth.enable = lib.mkDefault false;
|
||||
};
|
||||
|
||||
services = {
|
||||
# Everyone needs sound
|
||||
pipewire = {
|
||||
enable = true;
|
||||
pulse.enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
};
|
||||
|
||||
# On desktop: Monitor keyboards, mice, ...
|
||||
# On portable devices: Monitor their battery
|
||||
upower.enable = true;
|
||||
|
||||
# What generated entropy?
|
||||
haveged.enable = true;
|
||||
};
|
||||
}
|
||||
10
modules/hardware/mobile.nix
Normal file
10
modules/hardware/mobile.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
# Special options for mobile devices
|
||||
{
|
||||
# Battery savings
|
||||
services.tlp.enable = true;
|
||||
|
||||
# TODO: Maybe move this out of here
|
||||
environment.systemPackages = [ pkgs.iio-sensor-proxy ];
|
||||
}
|
||||
7
modules/hardware/video.nix
Normal file
7
modules/hardware/video.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{ config, ... }:
|
||||
|
||||
let
|
||||
unstable = (import ../unstable.nix config);
|
||||
in {
|
||||
environment.systemPackages = [ unstable.mesa ];
|
||||
}
|
||||
BIN
modules/hardware/wifi.nix
Normal file
BIN
modules/hardware/wifi.nix
Normal file
Binary file not shown.
Reference in New Issue
Block a user