nixos/machines/Lilim/configuration.nix

80 lines
1.7 KiB
Nix
Raw Normal View History

{
2023-09-11 20:23:04 +02:00
pkgs,
lib,
...
}:
{
2019-09-05 15:24:54 +02:00
services.cron.enable = false;
2019-08-23 14:43:45 +02:00
networking.dhcpcd.extraConfig = "noarp";
2019-09-29 08:09:26 +02:00
system.stateVersion = "19.09";
2023-01-29 14:43:52 +01:00
# low latency audio stuff
security.pam.loginLimits = [
2023-09-11 20:23:04 +02:00
{
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 = "99999";
}
2023-01-29 14:43:52 +01:00
];
environment = {
etc = {
"security/limits.d/91-nice.conf".text = ''
derped - nice -4
'';
};
variables = {
2023-09-11 20:23:04 +02:00
DSSI_PATH = "$HOME/.dssi:$HOME/.nix-profile/lib/dssi:/run/current-system/sw/lib/dssi";
2023-01-29 14:43:52 +01:00
LADSPA_PATH = "$HOME/.ladspa:$HOME/.nix-profile/lib/ladspa:/run/current-system/sw/lib/ladspa";
2023-09-11 20:23:04 +02:00
LV2_PATH = "$HOME/.lv2:$HOME/.nix-profile/lib/lv2:/run/current-system/sw/lib/lv2";
LXVST_PATH = "$HOME/.lxvst:$HOME/.nix-profile/lib/lxvst:/run/current-system/sw/lib/lxvst";
VST_PATH = "$HOME/.vst:$HOME/.nix-profile/lib/vst:/run/current-system/sw/lib/vst";
2023-01-29 14:43:52 +01:00
};
};
services = {
2024-11-20 15:31:30 +01:00
languagetool = {
enable = true;
allowOrigin = "*";
};
2023-01-29 14:44:36 +01:00
joycond.enable = true;
2023-01-29 14:43:52 +01:00
udev = {
packages = [ ];
2023-01-29 14:43:52 +01:00
extraRules = ''
KERNEL=="rtc0", GROUP="audio"
KERNEL=="hpet", GROUP="audio"
'';
};
};
boot = {
kernelModules = [
"snd-usb-audio"
"snd-aloop"
"snd-seq"
"snd-rawmidi"
];
kernelParams = [ "threadirq" ];
2023-01-29 14:43:52 +01:00
extraModprobeConfig = ''
options snd-usb-audio nrpacks=1
'';
};
2019-02-26 13:44:40 +01:00
}