add pipewire auto gain control block; update to 25.05; add wireshark gui; ryubing->stable; nerd-fonts new packaging; godot-mono->stable; update vscode

This commit is contained in:
2025-05-22 15:18:30 +01:00
parent 64eae63335
commit 95608f2bfa
8 changed files with 123 additions and 91 deletions

View File

@@ -51,6 +51,30 @@
services.pipewire = { services.pipewire = {
enable = true; enable = true;
pulse.enable = true; pulse.enable = true;
extraConfig.pipewire-pulse = {
"10-prevent-agc" = {
"pulse.rules" = [
{
matches = [
{ "application.process.binary" = "chrome"; }
{ "application.process.binary" = "Discord"; }
{ "application.process.binary" = "teams"; }
{ "application.process.binary" = "electron"; }
{ "application.process.binary" = "skypeforlinux"; }
{ "application.process.binary" = "telegram-desktop"; }
{ "application.process.binary" = "vivaldi"; }
{ "application.process.binary" = "chromium"; }
{ "application.process.binary" = "zoom"; }
];
actions = {
quirks = [
"block-source-volume"
];
};
}
];
};
};
}; };
services.fstrim.enable = true; services.fstrim.enable = true;

View File

@@ -2,7 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page, on # your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`). # https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ inputs, ... }: { inputs, pkgs, ... }:
{ {
imports = imports =
@@ -42,9 +42,10 @@
hardware.tuxedo-drivers.enable = true; hardware.tuxedo-drivers.enable = true;
programs.nix-ld.enable = true;
programs.wireshark = { programs.wireshark = {
enable = true; enable = true;
package = pkgs.wireshark;
dumpcap.enable = true;
}; };
# Define a user account. Don't forget to set a password with passwd. # Define a user account. Don't forget to set a password with passwd.

View File

@@ -1,17 +1,21 @@
{ {
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11?shallow=1"; nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05?shallow=1";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable?shallow=1"; nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable?shallow=1";
nixos-hardware.url = "github:NixOS/nixos-hardware/master?shallow=1"; # use by inputs.nixpkgs-unstable.legacyPackages."${pkgs.system}".[package name]
nix-vscode-extensions.url = "github:nix-community/nix-vscode-extensions?shallow=1";
home-manager = { home-manager = {
url = "github:nix-community/home-manager/release-24.11?shallow=1"; url = "github:nix-community/home-manager/release-25.05?shallow=1";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nixos-hardware.url = "github:NixOS/nixos-hardware/master?shallow=1";
disko = { disko = {
url = "github:nix-community/disko?shallow=1"; url = "github:nix-community/disko?shallow=1";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nix-vscode-extensions.url = "github:nix-community/nix-vscode-extensions?shallow=1";
system-manager = { system-manager = {
url = "github:numtide/system-manager?shallow=1"; url = "github:numtide/system-manager?shallow=1";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";

View File

@@ -5,7 +5,7 @@
liberation_ttf liberation_ttf
ubuntu-sans ubuntu-sans
ubuntu-sans-mono ubuntu-sans-mono
(nerdfonts.override { fonts = [ "SpaceMono" ]; }) nerd-fonts.space-mono
]; ];
fonts.fontconfig = { fonts.fontconfig = {

View File

@@ -24,7 +24,7 @@ with lib;
config = { config = {
home.packages = with pkgs;[ home.packages = with pkgs;[
blesh blesh
(nerdfonts.override { fonts = [ "SpaceMono" ]; }) nerd-fonts.space-mono
]; ];
programs = { programs = {
@@ -95,6 +95,7 @@ with lib;
enableBashIntegration = true; enableBashIntegration = true;
settings = { settings = {
theme = "dracula"; theme = "dracula";
show_startup_tips = false;
}; };
}; };

View File

@@ -1,17 +1,17 @@
{ pkgs, inputs, ... }: { pkgs, ... }:
{ {
home.packages = with pkgs;[ home.packages = with pkgs;[
jetbrains.rider jetbrains.rider
# Remove when https://github.com/NixOS/nixpkgs/issues/393332 resolved (likely when 25.05 is out) # Remove when https://github.com/NixOS/nixpkgs/issues/393332 resolved (likely when 25.05 is out)
# godot-mono godot-mono
(symlinkJoin { # (symlinkJoin {
name = "godot-mono"; # name = "godot-mono";
paths = [ inputs.nixpkgs-unstable.legacyPackages."${pkgs.system}".godot-mono ]; # paths = [ inputs.nixpkgs-unstable.legacyPackages."${pkgs.system}".godot-mono ];
buildInputs = [ makeWrapper ]; # buildInputs = [ makeWrapper ];
postBuild = '' # postBuild = ''
wrapProgram $out/bin/godot4-mono --set DOTNET_SYSTEM_GLOBALIZATION_INVARIANT 1 # wrapProgram $out/bin/godot4-mono --set DOTNET_SYSTEM_GLOBALIZATION_INVARIANT 1
''; # '';
}) # })
]; ];
} }

View File

@@ -6,17 +6,18 @@ let
in in
{ {
home.packages = with pkgs;[ home.packages = with pkgs;[
(nerdfonts.override { fonts = [ "SpaceMono" ]; }) nerd-fonts.space-mono
]; ];
programs = { programs = {
vscode = { vscode = {
enable = true; enable = true;
package = inputs.nixpkgs-unstable.legacyPackages."${pkgs.system}".vscodium; package = pkgs.vscodium;
mutableExtensionsDir = false; mutableExtensionsDir = false;
profiles.default = {
enableUpdateCheck = false; enableUpdateCheck = false;
enableExtensionUpdateCheck = false; enableExtensionUpdateCheck = false;
extensions = with openvsx;[ extensions = (with openvsx;[
biomejs.biome biomejs.biome
mkhl.direnv mkhl.direnv
dracula-theme.theme-dracula dracula-theme.theme-dracula
@@ -34,7 +35,7 @@ in
rust-lang.rust-analyzer rust-lang.rust-analyzer
tamasfe.even-better-toml tamasfe.even-better-toml
mikestead.dotenv mikestead.dotenv
] ++ [ vscode-marketplace.bradlc.vscode-tailwindcss ]; ]) ++ (with vscode-marketplace;[ bradlc.vscode-tailwindcss ]);
userSettings = with pkgs;{ userSettings = with pkgs;{
"workbench.iconTheme" = "material-icon-theme"; "workbench.iconTheme" = "material-icon-theme";
"window.titleBarStyle" = "custom"; "window.titleBarStyle" = "custom";
@@ -89,5 +90,6 @@ in
}; };
}; };
}; };
};
} }

View File

@@ -1,10 +1,10 @@
{ inputs, pkgs, ... }: { pkgs, ... }:
{ {
home.packages = with pkgs;[ home.packages = with pkgs;[
steamguard-cli steamguard-cli
bottles bottles
inputs.nixpkgs-unstable.legacyPackages."${pkgs.system}".ryubing ryubing
mgba mgba
scanmem scanmem
heroic heroic