This commit is contained in:
alsaiduq-lab 2025-03-30 03:33:32 -06:00
parent 026d09a189
commit 8ed99daa24
7 changed files with 117 additions and 56 deletions

24
flake.lock generated
View file

@ -25,11 +25,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1742670145, "lastModified": 1743295846,
"narHash": "sha256-xQ2F9f+ICAGBp/nNv3ddD2U4ZvzuLOci0u/5lyMXPvk=", "narHash": "sha256-hKKz07d4RV9gzxzE5Qu3RQWX8a7XpzRrP5timoxoGRQ=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "63e77d09a133ac641a0c204e7cfb0c97e133706d", "rev": "717030011980e9eb31eb8ce011261dd532bce92c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -44,11 +44,11 @@
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1742607855, "lastModified": 1743299372,
"narHash": "sha256-lUF/tpSON29qNIqhECX/Ue4qVmI3FOvMaW4iUnK49C4=", "narHash": "sha256-vFuxkHPd+Xpi5Bx1VCyZwYl/BbF83C+KmlbPBNVJvNU=",
"owner": "fufexan", "owner": "fufexan",
"repo": "nix-gaming", "repo": "nix-gaming",
"rev": "9818734e2117dac703767585d48b805fad3e7a5e", "rev": "2ab0a37308559926bddb0009dfcf16a2a5b34e2b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -59,11 +59,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1741865919, "lastModified": 1743076231,
"narHash": "sha256-4thdbnP6dlbdq+qZWTsm4ffAwoS8Tiq1YResB+RP6WE=", "narHash": "sha256-yQugdVfi316qUfqzN8JMaA2vixl+45GxNm4oUfXlbgw=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "573c650e8a14b2faa0041645ab18aed7e60f0c9a", "rev": "6c5963357f3c1c840201eda129a99d455074db04",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -90,11 +90,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1742512142, "lastModified": 1743231893,
"narHash": "sha256-8XfURTDxOm6+33swQJu/hx6xw1Tznl8vJJN5HwVqckg=", "narHash": "sha256-tpJsHMUPEhEnzySoQxx7+kA+KUtgWqvlcUBqROYNNt0=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "7105ae3957700a9646cc4b766f5815b23ed0c682", "rev": "c570c1f5304493cafe133b8d843c7c1c4a10d3a6",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -5,4 +5,14 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
lazygit lazygit
]; ];
programs.git = {
enable = true;
includes = [
{ path = "./.secrets/.git-config"; }
];
extraConfig = {
credential.helper = "store --file ./.secrets/.git-credentials";
};
};
} }

View file

@ -2,15 +2,5 @@
pkgs, pkgs,
... ...
}: { }: {
home.packages = with pkgs; [ home.packages = pkgs.polybar.all;
(polybar.override {
alsaSupport = false;
curlSupport = true;
i3Support = true;
mpdSupport = true;
pulseSupport = true;
nlSupport = true;
iwSupport = true;
})
];
} }

View file

@ -5,12 +5,6 @@
}: let }: let
customPkgs = import ../pkgs {inherit pkgs lib;}; customPkgs = import ../pkgs {inherit pkgs lib;};
in { in {
imports = [
../modules/python.nix
];
python.enable = true;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
brave # TODO: make a module to save browser stuff brave # TODO: make a module to save browser stuff
vesktop vesktop
@ -48,7 +42,6 @@ in {
htop htop
btop btop
nvtopPackages.full nvtopPackages.full
ripgrep
fd fd
fzf fzf
jq jq
@ -95,5 +88,42 @@ in {
nodePackages.pnpm nodePackages.pnpm
zlib.dev zlib.dev
udiskie udiskie
rust-analyzer
clang-tools
vscode-langservers-extracted
nodePackages.eslint
gopls
lua-language-server
marksman
nil
ruff
taplo
yaml-language-server
alejandra
nodePackages.prettier
stylua
shfmt
nodePackages.sql-formatter
yamlfmt
luaPackages.luacheck
nodePackages.markdownlint-cli
nodePackages.stylelint
nodePackages.htmlhint
yamllint
nodePackages.jsonlint
hadolint
shellcheck
cppcheck
go-tools
rubocop
phpPackages.php-codesniffer
phpPackages.phpstan
checkstyle
tflint
sqlfluff
rustc
python3Packages.debugpy
customPkgs.python-ngx-lsp
]; ];
} }

View file

@ -10,13 +10,11 @@
pulse.enable = true; pulse.enable = true;
# If you want to use JACK applications, uncomment this # If you want to use JACK applications, uncomment this
#jack.enable = true; #jack.enable = true;
# use the example session manager (no others are packaged yet so this is enabled by default,
# no need to redefine it in your config for now)
#media-session.enable = true;
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
cava cava
pulseaudio
ffmpeg
]; ];
} }

View file

@ -9,42 +9,34 @@
inherit version; inherit version;
sha256 = "0410j6jfz1yzm5s0v0yrc1j0q6ih4322357and7arr0jxnlsn0ia"; sha256 = "0410j6jfz1yzm5s0v0yrc1j0q6ih4322357and7arr0jxnlsn0ia";
}; };
meta.priority = -1;
}); });
customPackages = pkgs.python311Packages.override { customPydantic = pkgs.python311Packages.override {
overrides = self: super: { overrides = self: super: {
numpy = numpy-1; numpy = numpy-1;
pydantic = super.pydantic.overridePythonAttrs (oldAttrs: rec {
version = "1.10.18";
src = pkgs.fetchPypi {
pname = "pydantic";
inherit version;
sha256 = "uuvf8ZB9HZahOcJRNqm7fRfhGPEzp2ou87hF6DHjQDo=";
};
nativeBuildInputs = oldAttrs.nativeBuildInputs or [] ++ [ self.setuptools ];
});
}; };
}; };
in { in {
fish-rust = pkgs.callPackage ./fish-rust {}; fish-rust = pkgs.callPackage ./fish-rust {};
python-pymatting = pkgs.callPackage ./python-pymatting {
inherit lib;
fetchPypi = pkgs.fetchPypi;
python311Packages = customPackages;
};
python-opencv-headless = pkgs.callPackage ./python-opencv-headless {
inherit lib;
fetchPypi = pkgs.fetchPypi;
cmake = pkgs.cmake;
pkg-config = pkgs.pkg-config;
stdenv = pkgs.stdenv;
makeWrapper = pkgs.makeWrapper;
python311Packages = customPackages;
};
python-rembg = pkgs.callPackage ./python-rembg { python-rembg = pkgs.callPackage ./python-rembg {
inherit lib; inherit lib;
fetchPypi = pkgs.fetchPypi; fetchPypi = pkgs.fetchPypi;
python311Packages = customPackages; python311Packages = numpy-1;
python-pymatting = pkgs.callPackage ./python-pymatting { python-pymatting = pkgs.callPackage ./python-pymatting {
inherit lib; inherit lib;
fetchPypi = pkgs.fetchPypi; fetchPypi = pkgs.fetchPypi;
python311Packages = customPackages; python311Packages = numpy-1;
}; };
python-opencv-headless = pkgs.callPackage ./python-opencv-headless { python-opencv-headless = pkgs.callPackage ./python-opencv-headless {
@ -54,9 +46,13 @@ in {
pkg-config = pkgs.pkg-config; pkg-config = pkgs.pkg-config;
stdenv = pkgs.stdenv; stdenv = pkgs.stdenv;
makeWrapper = pkgs.makeWrapper; makeWrapper = pkgs.makeWrapper;
python311Packages = customPackages; python311Packages = numpy-1;
}; };
}; };
pythonPackages = customPackages; python-ngx-lsp = pkgs.callPackage ./python-nginx-language-server {
inherit lib;
fetchFromGitHub = pkgs.fetchFromGitHub;
python311Packages = customPydantic;
};
} }

View file

@ -0,0 +1,37 @@
{ lib, python311Packages, fetchFromGitHub }:
let
customPydantic = python311Packages.pydantic.overridePythonAttrs (oldAttrs: {
doCheck = false;
});
in
python311Packages.buildPythonPackage rec {
pname = "nginx-language-server";
version = "0.8.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "pappasam";
repo = "nginx-language-server";
rev = "v${version}";
sha256 = "AXWrNt4f3jkAbidE1goDgFicu4sSBv08f/Igyh2bRII=";
};
nativeBuildInputs = with python311Packages; [
setuptools
poetry-core
];
propagatedBuildInputs = with python311Packages; [
pygls
customPydantic
crossplane
lsprotocol
];
pythonImportsCheck = [ "nginx_language_server" ];
doCheck = false;
meta = with lib; {
description = "A language server for nginx";
homepage = "https://github.com/pappasam/nginx-language-server";
license = licenses.gpl3Only;
platforms = platforms.all;
maintainers = with maintainers; [ "Cobray" ];
};
}