Add all of iogamaster modules
This commit is contained in:
32
modules/nixos/hardware/audio/default.nix
Normal file
32
modules/nixos/hardware/audio/default.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
21
modules/nixos/hardware/networking/default.nix
Normal file
21
modules/nixos/hardware/networking/default.nix
Normal 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"
|
||||
];
|
||||
};
|
||||
}
|
30
modules/nixos/hardware/nvidia/default.nix
Normal file
30
modules/nixos/hardware/nvidia/default.nix
Normal 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.
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user