updated some stuff

This commit is contained in:
serenity-F 2024-12-12 07:10:01 +10:00
parent 54d9dd67c7
commit bfda6c02fc
3 changed files with 70 additions and 5 deletions

View file

@ -5,21 +5,69 @@
{ {
#boot.kernelModules = [ "snd-seq" "snd-rawmidi" ];
## Can't remember what this does, ## Can't remember what this does,
## recommended to be enabled though ## recommended to be enabled though
security.rtkit.enable = true; security = {
rtkit.enable = true;
# realtime audio priority (initially for JACK2)
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 = "99999";
}
];
};
services.udev = {
extraRules = ''
KERNEL=="rtc0", GROUP="audio"
KERNEL=="hpet", GROUP="audio"
'';
};
## Not using pulse directly ## Not using pulse directly
hardware.pulseaudio.enable = false; hardware.pulseaudio.enable = false;
## Musnix for audio production ## Musnix for audio production
musnix.enable = true; musnix = {
enable = true;
rtcqs = {
enable = true;
};
rtirq = {
enable = true;
};
kernel = {
realtime = true;
};
};
## Using pipewire baybee ## Using pipewire baybee
services.pipewire = { services.pipewire = {
enable = true; enable = true;
## Uncomment if you(g.) want to use JACK applications jack.enable = true;
#jack.enable = true;
pulse.enable = true; pulse.enable = true;
alsa = { alsa = {
enable = true; enable = true;

View file

@ -4,6 +4,14 @@
imports = [ ]; imports = [ ];
system.activationScripts.diff = {
supportsDryActivation = true;
text = ''
${pkgs.nvd}/bin/nvd --nix-bin-dir=${pkgs.nix}/bin diff \
/run/current-system "$systemConfig"
'';
};
nixpkgs = { nixpkgs = {
config = { config = {
@ -101,6 +109,7 @@
## CLI tools & utilities ## CLI tools & utilities
fd # Find, but faster fd # Find, but faster
bc # Calculator bc # Calculator
nvd # For nixos-rebuild summary
zip # What it says on the tin zip # What it says on the tin
btop # System metrics and process viewer btop # System metrics and process viewer
tldr # Simpler manual pages tldr # Simpler manual pages

View file

@ -176,7 +176,15 @@
]; ];
}; };
programs = { }; programs = {
## CLI fuzzy find
fzf = {
enable = true;
enableFishIntegration = true;
};
};
services = { services = {
## Daemon for easyeffects ## Daemon for easyeffects