mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
treewide reformat
This commit is contained in:
parent
de7683556e
commit
fc21bf9436
42 changed files with 1012 additions and 876 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue