Move modules folders
This commit is contained in:
parent
914909009c
commit
c1101e7b45
183 changed files with 327 additions and 327 deletions
81
nixos/pro_audio.nix
Normal file
81
nixos/pro_audio.nix
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
{
|
||||
boot = {
|
||||
# kernelModules = [ "snd-seq" "snd-rawmidi" ];
|
||||
# kernel.sysctl = { "vm.swappiness" = 10; "fs.inotify.max_user_watches" = 524288; };
|
||||
# kernelParams = [ "threadirq" ];
|
||||
|
||||
# kernelPatches = lib.singleton {
|
||||
# name = "pro_audio";
|
||||
# patch = null;
|
||||
# extraConfig = ''
|
||||
# PREEMPT_RT y
|
||||
# PREEMPT y
|
||||
# IOSCHED_DEADLINE y
|
||||
# DEFAULT_DEADLINE y
|
||||
# DEFAULT_IOSCHED "deadline"
|
||||
# HPET_TIMER y
|
||||
# CPU_FREQ n
|
||||
# TREE_RCU_TRACE n
|
||||
# '';
|
||||
# };
|
||||
|
||||
# postBootCommands = ''
|
||||
# echo 2048 > /sys/class/rtc/rtc0/max_user_freq
|
||||
# echo 2048 > /proc/sys/dev/hpet/max-user-freq
|
||||
# # setpci -v -d *:* latency_timer=b0
|
||||
# # setpci -v -s $00:1b.0 latency_timer=ff
|
||||
# '';
|
||||
# The SOUND_CARD_PCI_ID can be obtained like so:
|
||||
# $ lspci ¦ grep -i audio
|
||||
};
|
||||
|
||||
# powerManagement.cpuFreqGovernor = "performance";
|
||||
|
||||
# fileSystems."/" = { options = "noatime errors=remount-ro"; };
|
||||
|
||||
security.pam.loginLimits = [
|
||||
{
|
||||
domain = "@audio";
|
||||
item = "memlock";
|
||||
type = "-";
|
||||
value = "unlimited";
|
||||
}
|
||||
{
|
||||
domain = "@audio";
|
||||
item = "rtprio";
|
||||
type = "-";
|
||||
value = "99";
|
||||
}
|
||||
{
|
||||
domain = "@audio";
|
||||
item = "nofile";
|
||||
type = "soft";
|
||||
value = "99999";
|
||||
}
|
||||
{
|
||||
domain = "@audio";
|
||||
item = "nofile";
|
||||
type = "hard";
|
||||
value = "524288";
|
||||
}
|
||||
];
|
||||
|
||||
# services = {
|
||||
# udev = {
|
||||
# packages = [ pkgs.ffado ]; # If you have a FireWire audio interface
|
||||
# extraRules = ''
|
||||
# KERNEL=="rtc0", GROUP="audio"
|
||||
# KERNEL=="hpet", GROUP="audio"
|
||||
# '';
|
||||
# };
|
||||
# cron.enable = false;
|
||||
# };
|
||||
|
||||
# environment.shellInit = ''
|
||||
# export VST_PATH=/nix/var/nix/profiles/default/lib/vst:/var/run/current-system/sw/lib/vst:~/.vst
|
||||
# export LXVST_PATH=/nix/var/nix/profiles/default/lib/lxvst:/var/run/current-system/sw/lib/lxvst:~/.lxvst
|
||||
# export LADSPA_PATH=/nix/var/nix/profiles/default/lib/ladspa:/var/run/current-system/sw/lib/ladspa:~/.ladspa
|
||||
# export LV2_PATH=/nix/var/nix/profiles/default/lib/lv2:/var/run/current-system/sw/lib/lv2:~/.lv2
|
||||
# export DSSI_PATH=/nix/var/nix/profiles/default/lib/dssi:/var/run/current-system/sw/lib/dssi:~/.dssi
|
||||
# '';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue