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:
@@ -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;
|
||||||
|
|||||||
@@ -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’.
|
||||||
|
|||||||
12
flake.nix
12
flake.nix
@@ -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";
|
||||||
|
|||||||
@@ -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 = {
|
||||||
|
|||||||
@@ -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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
'';
|
# '';
|
||||||
})
|
# })
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,86 +6,88 @@ 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;
|
||||||
enableUpdateCheck = false;
|
profiles.default = {
|
||||||
enableExtensionUpdateCheck = false;
|
enableUpdateCheck = false;
|
||||||
extensions = with openvsx;[
|
enableExtensionUpdateCheck = false;
|
||||||
biomejs.biome
|
extensions = (with openvsx;[
|
||||||
mkhl.direnv
|
biomejs.biome
|
||||||
dracula-theme.theme-dracula
|
mkhl.direnv
|
||||||
dbaeumer.vscode-eslint
|
dracula-theme.theme-dracula
|
||||||
eamodio.gitlens
|
dbaeumer.vscode-eslint
|
||||||
pkief.material-icon-theme
|
eamodio.gitlens
|
||||||
jnoortheen.nix-ide
|
pkief.material-icon-theme
|
||||||
esbenp.prettier-vscode
|
jnoortheen.nix-ide
|
||||||
humao.rest-client
|
esbenp.prettier-vscode
|
||||||
loriscro.super
|
humao.rest-client
|
||||||
mads-hartmann.bash-ide-vscode
|
loriscro.super
|
||||||
foxundermoon.shell-format
|
mads-hartmann.bash-ide-vscode
|
||||||
dart-code.flutter
|
foxundermoon.shell-format
|
||||||
ms-vscode.wasm-wasi-core
|
dart-code.flutter
|
||||||
rust-lang.rust-analyzer
|
ms-vscode.wasm-wasi-core
|
||||||
tamasfe.even-better-toml
|
rust-lang.rust-analyzer
|
||||||
mikestead.dotenv
|
tamasfe.even-better-toml
|
||||||
] ++ [ vscode-marketplace.bradlc.vscode-tailwindcss ];
|
mikestead.dotenv
|
||||||
userSettings = with pkgs;{
|
]) ++ (with vscode-marketplace;[ bradlc.vscode-tailwindcss ]);
|
||||||
"workbench.iconTheme" = "material-icon-theme";
|
userSettings = with pkgs;{
|
||||||
"window.titleBarStyle" = "custom";
|
"workbench.iconTheme" = "material-icon-theme";
|
||||||
"workbench.colorTheme" = "Dracula Theme";
|
"window.titleBarStyle" = "custom";
|
||||||
"explorer.compactFolders" = false;
|
"workbench.colorTheme" = "Dracula Theme";
|
||||||
"chat.commandCenter.enabled" = false;
|
"explorer.compactFolders" = false;
|
||||||
|
"chat.commandCenter.enabled" = false;
|
||||||
|
|
||||||
"editor.fontFamily" = "'SpaceMono Nerd Font', 'monospace', monospace";
|
"editor.fontFamily" = "'SpaceMono Nerd Font', 'monospace', monospace";
|
||||||
"editor.fontSize" = 16;
|
"editor.fontSize" = 16;
|
||||||
"editor.formatOnSave" = true;
|
"editor.formatOnSave" = true;
|
||||||
"editor.codeActionsOnSave" = {
|
"editor.codeActionsOnSave" = {
|
||||||
"source.organizeImports" = "always";
|
"source.organizeImports" = "always";
|
||||||
};
|
|
||||||
|
|
||||||
"files.autoSave" = "onWindowChange";
|
|
||||||
|
|
||||||
"[typescript]" = {
|
|
||||||
"editor.defaultFormatter" = "biomejs.biome";
|
|
||||||
};
|
|
||||||
"[javascript]" = {
|
|
||||||
"editor.defaultFormatter" = "biomejs.biome";
|
|
||||||
};
|
|
||||||
"[javascriptreact]" = {
|
|
||||||
"editor.defaultFormatter" = "biomejs.biome";
|
|
||||||
};
|
|
||||||
"[typescriptreact]" = {
|
|
||||||
"editor.defaultFormatter" = "biomejs.biome";
|
|
||||||
};
|
|
||||||
"[json]" = {
|
|
||||||
"editor.defaultFormatter" = "biomejs.biome";
|
|
||||||
};
|
|
||||||
"[jsonc]" = {
|
|
||||||
"editor.defaultFormatter" = "biomejs.biome";
|
|
||||||
};
|
|
||||||
"biome.lsp.bin" = "${biome}/bin/biome";
|
|
||||||
"biome.requireConfigFile" = true;
|
|
||||||
|
|
||||||
"typescript.preferences.preferTypeOnlyAutoImports" = true;
|
|
||||||
|
|
||||||
"nix.enableLanguageServer" = true; # Enable LSP.
|
|
||||||
"nix.serverPath" = "${nixd}/bin/nixd"; # The path to the LSP server executable.
|
|
||||||
"nix.serverSettings" = {
|
|
||||||
nixd = {
|
|
||||||
formatting.command = [ "${nixpkgs-fmt}/bin/nixpkgs-fmt" ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"files.autoSave" = "onWindowChange";
|
||||||
|
|
||||||
|
"[typescript]" = {
|
||||||
|
"editor.defaultFormatter" = "biomejs.biome";
|
||||||
|
};
|
||||||
|
"[javascript]" = {
|
||||||
|
"editor.defaultFormatter" = "biomejs.biome";
|
||||||
|
};
|
||||||
|
"[javascriptreact]" = {
|
||||||
|
"editor.defaultFormatter" = "biomejs.biome";
|
||||||
|
};
|
||||||
|
"[typescriptreact]" = {
|
||||||
|
"editor.defaultFormatter" = "biomejs.biome";
|
||||||
|
};
|
||||||
|
"[json]" = {
|
||||||
|
"editor.defaultFormatter" = "biomejs.biome";
|
||||||
|
};
|
||||||
|
"[jsonc]" = {
|
||||||
|
"editor.defaultFormatter" = "biomejs.biome";
|
||||||
|
};
|
||||||
|
"biome.lsp.bin" = "${biome}/bin/biome";
|
||||||
|
"biome.requireConfigFile" = true;
|
||||||
|
|
||||||
|
"typescript.preferences.preferTypeOnlyAutoImports" = true;
|
||||||
|
|
||||||
|
"nix.enableLanguageServer" = true; # Enable LSP.
|
||||||
|
"nix.serverPath" = "${nixd}/bin/nixd"; # The path to the LSP server executable.
|
||||||
|
"nix.serverSettings" = {
|
||||||
|
nixd = {
|
||||||
|
formatting.command = [ "${nixpkgs-fmt}/bin/nixpkgs-fmt" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
"bashIde.shellcheckPath" = "${shellcheck}/bin/shellcheck";
|
||||||
|
"shellformat.path" = "${shfmt}/bin/shfmt";
|
||||||
|
|
||||||
|
"rust-analyzer.rustfmt.overrideCommand" = [ "${rustfmt}/bin/rustfmt" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
"bashIde.shellcheckPath" = "${shellcheck}/bin/shellcheck";
|
|
||||||
"shellformat.path" = "${shfmt}/bin/shfmt";
|
|
||||||
|
|
||||||
"rust-analyzer.rustfmt.overrideCommand" = [ "${rustfmt}/bin/rustfmt" ];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user