upgrade nixos, audio stuff
This commit is contained in:
parent
442669130a
commit
c56ec41dd8
5 changed files with 34 additions and 11 deletions
|
|
@ -39,7 +39,7 @@
|
|||
];
|
||||
|
||||
nixpkgs.config.permittedInsecurePackages = [
|
||||
"electron-12.2.3"
|
||||
"electron-19.1.9"
|
||||
];
|
||||
|
||||
services.udev.extraRules = ''
|
||||
|
|
|
|||
|
|
@ -22,21 +22,44 @@
|
|||
nix.settings = aagl.nixConfig;
|
||||
programs.honkers-railway-launcher.enable = true;
|
||||
|
||||
users = { groups.game = { }; };
|
||||
security.pam.loginLimits = [
|
||||
{ domain = "@game"; type = "-"; item = "nice"; value = -20; }
|
||||
];
|
||||
|
||||
security.rtkit.enable = true;
|
||||
environment.etc =
|
||||
let
|
||||
json = pkgs.formats.json { };
|
||||
in
|
||||
{
|
||||
"pipewire/pipewire.d/92-low-latency.conf".source = json.generate "92-low-latency.conf" {
|
||||
"pipewire/pipewire.conf.d/92-low-latency.conf".source = json.generate "92-low-latency.conf" {
|
||||
context.properties = {
|
||||
default.clock.rate = 48000;
|
||||
# default.allowed-rates = []
|
||||
default.clock.rate = 48000;
|
||||
default.clock.quantum = 32;
|
||||
default.clock.min-quantum = 32;
|
||||
default.clock.max-quantum = 32;
|
||||
};
|
||||
};
|
||||
"pipewire/pipewire-pulse.d/92-low-latency.conf".source = json.generate "92-low-latency.conf" {
|
||||
context.modules = [
|
||||
{
|
||||
name = "libpipewire-module-protocol-pulse";
|
||||
args = {
|
||||
pulse.min.req = "32/48000";
|
||||
pulse.default.req = "32/48000";
|
||||
pulse.max.req = "32/48000";
|
||||
pulse.min.quantum = "32/48000";
|
||||
pulse.max.quantum = "32/48000";
|
||||
};
|
||||
}
|
||||
];
|
||||
stream.properties = {
|
||||
node.latency = "32/48000";
|
||||
resample.quality = 1;
|
||||
};
|
||||
};
|
||||
# "pipewire/pipewire.d/99-input-denoising.conf" = json.generate "99-input-denoising.conf" {
|
||||
# context.modules = [{
|
||||
# name = "libpipewire-module-filter-chain";
|
||||
|
|
|
|||
8
flake.lock
generated
8
flake.lock
generated
|
|
@ -120,16 +120,16 @@
|
|||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1704290814,
|
||||
"narHash": "sha256-LWvKHp7kGxk/GEtlrGYV68qIvPHkU9iToomNFGagixU=",
|
||||
"lastModified": 1705774713,
|
||||
"narHash": "sha256-j6ADaDH9XiumUzkTPlFyCBcoWYhO83lfgiSqEJF2zcs=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "70bdadeb94ffc8806c0570eb5c2695ad29f0e421",
|
||||
"rev": "1b64fc1287991a9cce717a01c1973ef86cb1af0b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"id": "nixpkgs",
|
||||
"ref": "nixos-23.05",
|
||||
"ref": "nixos-23.11",
|
||||
"type": "indirect"
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
description = "we say NO to shitty OSes";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "nixpkgs/nixos-23.05";
|
||||
nixpkgs.url = "nixpkgs/nixos-23.11";
|
||||
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
|
||||
nixos-hardware.url = "nixos-hardware";
|
||||
nixos-raspberrypi.url = "github:ramblurr/nixos-raspberrypi";
|
||||
|
|
|
|||
|
|
@ -79,15 +79,15 @@
|
|||
configDir = "/home/tao/.config/syncthing";
|
||||
};
|
||||
|
||||
fonts.fonts = with pkgs; [
|
||||
fonts.packages = with pkgs; [
|
||||
(nerdfonts.override { fonts = [ "FiraCode" ]; })
|
||||
noto-fonts-cjk
|
||||
noto-fonts-emoji
|
||||
noto-fonts-color-emoji
|
||||
];
|
||||
|
||||
users.users.tao = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "video" "wheel" "libvirtd" "dialout" "scanner" "lp" ];
|
||||
extraGroups = [ "video" "wheel" "libvirtd" "dialout" "game" ];
|
||||
shell = pkgs.unstable.nushell;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue