mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
I don't know if i like this
This commit is contained in:
parent
c6a9144ffe
commit
1b62d16ddc
63 changed files with 369 additions and 294 deletions
|
|
@ -1,43 +0,0 @@
|
|||
{ config, lib }:
|
||||
let
|
||||
cfg = config.local.hardware;
|
||||
in
|
||||
{
|
||||
options.local.hardware = {
|
||||
gpuAcceleration.disable = lib.mkEnableOption "";
|
||||
sound.disable = lib.mkEnableOption "";
|
||||
};
|
||||
config = lib.mkMerge [
|
||||
(lib.mkIf (!cfg.gpuAcceleration.disable) {
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
enable32Bit = true;
|
||||
};
|
||||
})
|
||||
(lib.mkIf (!cfg.sound.disable) {
|
||||
security.rtkit.enable = true;
|
||||
services = {
|
||||
pulseaudio.enable = lib.mkForce false; # disable pulseAudio
|
||||
pipewire = {
|
||||
enable = true;
|
||||
alsa = {
|
||||
enable = true;
|
||||
support32Bit = true;
|
||||
};
|
||||
pulse.enable = true;
|
||||
jack.enable = false;
|
||||
};
|
||||
};
|
||||
})
|
||||
|
||||
{
|
||||
hardware = {
|
||||
enableRedistributableFirmware = true;
|
||||
cpu = {
|
||||
intel.updateMicrocode = true;
|
||||
amd.updateMicrocode = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue