Add all of iogamaster modules

This commit is contained in:
2024-06-15 09:59:52 +02:00
parent c97f22254a
commit fa99b32cad
120 changed files with 3587 additions and 254 deletions

View File

@@ -0,0 +1,32 @@
{
options,
config,
lib,
pkgs,
...
}:
with lib;
with lib.frajul; let
cfg = config.hardware.audio;
in {
options.hardware.audio = with types; {
enable = mkBoolOpt false "Enable pipewire";
};
config = mkIf cfg.enable {
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
wireplumber.enable = true;
jack.enable = true;
pulse.enable = true;
};
programs.noisetorch.enable = true;
environment.systemPackages = with pkgs; [
pavucontrol
];
};
}

View File

@@ -0,0 +1,21 @@
{
options,
config,
lib,
...
}:
with lib;
with lib.frajul; let
cfg = config.hardware.networking;
in {
options.hardware.networking = with types; {
enable = mkBoolOpt false "Enable networkmanager";
};
config = mkIf cfg.enable {
networking.networkmanager.enable = true;
environment.persist.directories = [
"/etc/NetworkManager"
];
};
}

View File

@@ -0,0 +1,30 @@
{
options,
config,
pkgs,
lib,
...
}:
with lib;
with lib.frajul; let
cfg = config.hardware.nvidia;
in {
options.hardware.nvidia = with types; {
enable = mkBoolOpt false "Enable drivers and patches for Nvidia hardware.";
};
config = mkIf cfg.enable {
services.xserver.videoDrivers = ["nvidia"];
hardware.nvidia.modesetting.enable = true;
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.production;
environment.variables = {
CUDA_CACHE_PATH = "$XDG_CACHE_HOME/nv";
};
environment.shellAliases = {nvidia-settings = "nvidia-settings --config='$XDG_CONFIG_HOME'/nvidia/settings";};
# Hyprland settings
environment.sessionVariables.WLR_NO_HARDWARE_CURSORS = "1"; # Fix cursor rendering issue on wlr nvidia.
};
}