mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
feat: big fixups
This commit is contained in:
parent
6e0cc170eb
commit
fb814ed301
13 changed files with 52 additions and 70 deletions
|
|
@ -1,6 +0,0 @@
|
||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
}
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
lib,
|
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (config.catppuccin) sources;
|
inherit (config.catppuccin) sources;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (config.base16) palette;
|
inherit (config.base16) palette;
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,12 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
(discord-krisp.override {
|
(discord-krisp.override {
|
||||||
withOpenASAR = true;
|
withOpenASAR = true;
|
||||||
withMoonlight = true;
|
withMoonlight = true;
|
||||||
withVencord = false; # can do this here too
|
|
||||||
})
|
})
|
||||||
legcord
|
|
||||||
#dorion
|
|
||||||
#betterdiscordctl
|
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.moonlight-mod = {
|
programs.moonlight-mod = {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,4 @@
|
||||||
{
|
_: {
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
programs.firefox.profiles.main = {
|
programs.firefox.profiles.main = {
|
||||||
containersForce = true;
|
containersForce = true;
|
||||||
containers = {
|
containers = {
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
self,
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
std,
|
std,
|
||||||
|
|
|
||||||
|
|
@ -1,52 +1,58 @@
|
||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
environment.systemPackages = with pkgs; [pulsemixer pwvucontrol easyeffects];
|
environment.systemPackages = with pkgs; [pulsemixer pwvucontrol easyeffects];
|
||||||
|
|
||||||
services.pulseaudio.enable = false;
|
services = {
|
||||||
services.pipewire.extraConfig.pipewire."92-low-latency" = {
|
pulseaudio.enable = false;
|
||||||
"context.properties" = {
|
pipewire = {
|
||||||
"default.clock.rate" = 48000;
|
enable = true;
|
||||||
"default.clock.quantum" = 256;
|
pulse.enable = true;
|
||||||
"default.clock.min-quantum" = 256;
|
alsa.support32Bit = true;
|
||||||
"default.clock.max-quantum" = 256;
|
jack.enable = true;
|
||||||
};
|
alsa.enable = true;
|
||||||
};
|
extraConfig = {
|
||||||
services.pipewire.extraConfig.pipewire-pulse."92-low-latency" = {
|
pipewire."92-low-latency" = {
|
||||||
"context.properties" = [
|
"context.properties" = {
|
||||||
{
|
"default.clock.rate" = 48000;
|
||||||
name = "libpipewire-module-protocol-pulse";
|
"default.clock.quantum" = 256;
|
||||||
args = {};
|
"default.clock.min-quantum" = 256;
|
||||||
}
|
"default.clock.max-quantum" = 256;
|
||||||
];
|
};
|
||||||
"pulse.properties" = {
|
};
|
||||||
"pulse.min.req" = "512/48000";
|
pipewire-pulse = {
|
||||||
"pulse.default.req" = "512/48000";
|
"91-discord-latency" = {
|
||||||
"pulse.max.req" = "512/48000";
|
pulse.rules = [
|
||||||
"pulse.min.quantum" = "512/48000";
|
{
|
||||||
"pulse.max.quantum" = "512/48000";
|
matches = [{"application.process.binary" = "Discord";}];
|
||||||
};
|
actions = {
|
||||||
"stream.properties" = {
|
update-props = {
|
||||||
"node.latency" = "256/48000";
|
"pulse.min.quantum" = "1024/48000";
|
||||||
"resample.quality" = 1;
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
"92-low-latency" = {
|
||||||
|
"context.properties" = [
|
||||||
|
{
|
||||||
|
name = "libpipewire-module-protocol-pulse";
|
||||||
|
args = {};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
"pulse.properties" = {
|
||||||
|
"pulse.min.req" = "512/48000";
|
||||||
|
"pulse.default.req" = "512/48000";
|
||||||
|
"pulse.max.req" = "512/48000";
|
||||||
|
"pulse.min.quantum" = "512/48000";
|
||||||
|
"pulse.max.quantum" = "512/48000";
|
||||||
|
};
|
||||||
|
"stream.properties" = {
|
||||||
|
"node.latency" = "256/48000";
|
||||||
|
"resample.quality" = 1;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
services.pipewire.extraConfig.pipewire-pulse."91-discord-latency" = {
|
|
||||||
pulse.rules = [
|
|
||||||
{
|
|
||||||
matches = [{"application.process.binary" = "Discord";}];
|
|
||||||
actions = {
|
|
||||||
update-props = {
|
|
||||||
"pulse.min.quantum" = "1024/48000";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
services.pipewire = {
|
|
||||||
enable = true;
|
|
||||||
pulse.enable = true;
|
|
||||||
alsa.support32Bit = true;
|
|
||||||
jack.enable = true;
|
|
||||||
alsa.enable = true;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,14 +27,7 @@ with pkgs; let
|
||||||
repo.darwinConfigurations);
|
repo.darwinConfigurations);
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
export CI_PLATFORM="impure"
|
export CI_PLATFORM="impure"
|
||||||
sops
|
|
||||||
echo -e "\e[39m\e[1m$USER@$REPO_HOSTNAME - \e[35m''$(realpath --relative-to=../ ./nixos/)\e[0m"
|
echo -e "\e[39m\e[1m$USER@$REPO_HOSTNAME - \e[35m''$(realpath --relative-to=../ ./nixos/)\e[0m"
|
||||||
echo -e "\e[35mRunning alejandra\e[0m"
|
|
||||||
alejandra -cq $(fd -e nix)
|
|
||||||
echo -e "\e[35mRunning statix\e[0m"
|
|
||||||
statix check
|
|
||||||
echo -e "\e[35mRunning deadnix\e[0m"
|
|
||||||
deadnix
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue