This commit is contained in:
fwastring 2025-12-01 21:33:27 +01:00
parent d516a6e283
commit 04fdbf9d61
16 changed files with 72 additions and 335 deletions

View file

@ -1,11 +0,0 @@
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -725,6 +725,8 @@ static const struct usb_device_id quirks_table[] = {
BTUSB_WIDEBAND_SPEECH },
{ USB_DEVICE(0x13d3, 0x3630), .driver_info = BTUSB_MEDIATEK |
BTUSB_WIDEBAND_SPEECH },
+ { USB_DEVICE(0x2c7c, 0x7009), .driver_info = BTUSB_MEDIATEK |
+ BTUSB_WIDEBAND_SPEECH },
/* Additional Realtek 8723AE Bluetooth devices */
{ USB_DEVICE(0x0930, 0x021d), .driver_info = BTUSB_REALTEK },

View file

@ -1,34 +0,0 @@
{ pkgs, lib, kernel ? pkgs.linuxPackages_latest.kernel}:
pkgs.stdenv.mkDerivation {
pname = "btusb-kernel-module";
inherit (kernel) src version postPatch nativeBuildInputs;
kernel_dev = kernel.dev;
kernelVersion = kernel.modDirVersion;
# The key change is here: point to the correct module path for btusb.
modulePath = "drivers/bluetooth";
buildPhase = ''
BUILT_KERNEL=$kernel_dev/lib/modules/$kernelVersion/build
cp $BUILT_KERNEL/Module.symvers .
cp $BUILT_KERNEL/.config .
cp $kernel_dev/vmlinux .
make "-j$NIX_BUILD_CORES" modules_prepare
make "-j$NIX_BUILD_CORES" M=$modulePath modules
'';
installPhase = ''
make \
INSTALL_MOD_PATH="$out" \
XZ="xz -T$NIX_BUILD_CORES" \
M="$modulePath" \
modules_install
'';
meta = {
description = "btusb kernel module";
license = lib.licenses.gpl3;
};
}

View file

@ -3,65 +3,18 @@
pkgs,
...
}:
let
# go-migrate-pg = pkgs.go-migrate.overrideAttrs (oldAttrs: {
# tags = [ "postgres" ];
# });
in
{
nix.settings.trusted-users = [
"root"
"fw"
];
environment.systemPackages = with pkgs; [
# Neovim
inputs.neovim-nightly-overlay.packages.${pkgs.stdenv.hostPlatform.system}.default
# Nix
nixfmt-rfc-style
# Docker
# dive
lazydocker
# Jobb
gh
# awscli
# minio-client
# dotnetCorePackages.dotnet_9.sdk
# opentofu
# azure-cli
# jira-cli-go
# Blogging
# zola
# System Design
# sqlc
# postgresql
# plantuml
# Web Dev
# tailwindcss
# prettierd
# Go
# go
# air
# templ
# go-migrate-pg
# Build
git
gcc
# gnumake
# cmake
# System Tools
awscli
minio-client
opentofu
azure-cli
yq
jq
git
# qrencode
];
}

View file

@ -1,29 +0,0 @@
{
lib,
config,
pkgs,
...
}:
{
environment.systemPackages = with pkgs; [
nixd
dockerfile-language-server
bash-language-server
helm-ls
yaml-language-server
lua-language-server
marksman
# tofu-ls
# gopls
# omnisharp-roslyn
# nodejs_22
# vue-language-server
# vtsls
# typescript
# typescript-language-server
# nodePackages.vscode-json-languageserver
# tailwindcss-language-server
];
}

View file

@ -17,8 +17,8 @@
environment.systemPackages = with pkgs; [
# networkmanager
dnsutils
# nmap
# ipcalc
nmap
ipcalc
# iperf3
# networkmanagerapplet

View file

@ -18,7 +18,7 @@ with lib;
default = "latte";
description = "Catppuccin theme variant for k9s.";
};
lsp_jobb = mkEnableOption "enable jobb lsps";
lsp_jobb = mkEnableOption "enable jobb lsps";
};
};
@ -32,6 +32,11 @@ with lib;
enable = true;
settings = {
flavour = config.nixvim.theme;
integrations = {
telescope = true;
treesitter = true;
cmp = true;
};
};
};
};
@ -181,7 +186,6 @@ with lib;
lualine = {
enable = true;
settings = {
options.theme = "catppuccin";
tabline = {
@ -190,16 +194,12 @@ with lib;
"branch"
"diagnostics"
];
lualine_c = [ ];
lualine_x = [ ];
lualine_y = [ "buffers" ];
lualine_z = [ ];
};
inactive_sections = {
lualine_a = [];
lualine_b = [];
lualine_c = [];
lualine_x = [];
lualine_y = [];
lualine_z = [];
};
};
};
@ -289,16 +289,16 @@ with lib;
};
};
enableMan = false;
# autoCmd = [
# {
# event = [
# "BufRead"
# "BufNewFile"
# ];
# pattern = "*.{md,typ}";
# callback = "vim.opt_local.spell = true";
# }
# ];
autoCmd = [
{
event = [
"BufRead"
"BufNewFile"
];
pattern = "*.{md,typ}";
command = "setlocal spell spelllang=en";
}
];
};
};

View file

@ -15,6 +15,12 @@
};
};
programs.nh = {
enable = true;
clean.enable = true;
clean.extraArgs = "--keep-since 4d --keep 3";
flake = "/home/fw/nix";
};
nix = {
registry = (lib.mapAttrs (_: flake: { inherit flake; })) (
(lib.filterAttrs (_: lib.isType "flake")) inputs
@ -23,6 +29,10 @@
settings = {
experimental-features = "nix-command flakes";
auto-optimise-store = true;
trusted-users = [
"root"
"fw"
];
};
};
users.defaultUserShell = pkgs.bash;

View file

@ -1,26 +1,14 @@
{
inputs,
lib,
config,
pkgs,
myhostname,
...
}:
{
programs.nh = {
enable = true;
clean.enable = true;
clean.extraArgs = "--keep-since 4d --keep 3";
flake = "/home/fw/nix";
};
environment.systemPackages = with pkgs; [
bluez
bluez-tools
poppler-utils
alsa-utils
sops
@ -31,16 +19,9 @@
htop
procps
grc
vim
fastfetch
bc
# sysstat
# lm_sensors
# ethtool
# pciutils
# usbutils
fzf
eza
rsync
@ -54,34 +35,5 @@
lazygit
hyprpicker
typst
typstyle
tinymist
# (
# let
# base = pkgs.appimageTools.defaultFhsEnvArgs;
# in
# pkgs.buildFHSEnv (
# base
# // {
# name = "fhs";
# targetPkgs =
# pkgs:
# # pkgs.buildFHSUserEnv provides only a minimal FHS environment,
# # lacking many basic packages needed by most software.
# # Therefore, we need to add them manually.
# #
# # pkgs.appimageTools provides basic packages required by most software.
# (base.targetPkgs pkgs)
# ++ (with pkgs; [
# pkg-config
# ncurses
# # Feel free to add more packages here if needed.
# ]);
# profile = "export FHS=1";
# runScript = "bash";
# extraOutputsToInstall = [ "dev" ];
# }
# )
# )
];
}