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