treewide reformat

This commit is contained in:
Gerg-L 2023-09-23 21:55:56 -04:00
parent de7683556e
commit fc21bf9436
Signed by: gerg-l
SSH key fingerprint: SHA256:FPYDHIkvMocr4wdmZXpgpJjsb2Tw6rASs2ISPbOb0KI
42 changed files with 1012 additions and 876 deletions

View file

@ -1,28 +1,25 @@
_: {
config,
lib,
...
}: let
_:
{ config, lib, ... }:
let
cfg = config.local.hardware;
in {
in
{
options.local.hardware = {
gpuAcceleration.disable = lib.mkEnableOption "";
sound.disable = lib.mkEnableOption "";
};
config = lib.mkMerge [
(
lib.mkIf (! cfg.gpuAcceleration.disable) {
hardware.opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
};
}
)
(lib.mkIf (! cfg.sound.disable) {
(lib.mkIf (!cfg.gpuAcceleration.disable) {
hardware.opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
};
})
(lib.mkIf (!cfg.sound.disable) {
security.rtkit.enable = true;
sound.enable = lib.mkForce false; #disable alsa
hardware.pulseaudio.enable = lib.mkForce false; #disable pulseAudio
sound.enable = lib.mkForce false; # disable alsa
hardware.pulseaudio.enable = lib.mkForce false; # disable pulseAudio
services.pipewire = {
enable = true;
alsa = {