treewide: slim down and reorganize config

This commit is contained in:
insects 2024-10-29 15:37:30 +01:00
parent 778775ceb6
commit 8a5be644b8
33 changed files with 131 additions and 755 deletions

View file

@ -0,0 +1,16 @@
# Basic development utilities for every system. Equivalent to something
# like `build-essential` on other systems, ideally.
{ pkgs, ... }:
{
home.packages = with pkgs; [
gcc
gnumake
unzip
openssl
autoconf
pkg-config
cmake
inotify-tools
];
}

View file

@ -1 +0,0 @@
{ pkgs, ... }: { home.packages = with pkgs; [ clojure clojure-lsp leiningen ]; }

View file

@ -0,0 +1,6 @@
# DB management interfaces
{ pkgs, ... }:
{
home.packages = with pkgs; [ beekeeper-studio ];
}

View file

@ -1,44 +1 @@
{ pkgs, ... }: {
imports = [ ./php.nix ./clojure.nix ./langs.nix ];
home.packages = with pkgs; [
gcc
gnumake
unzip
openssl
autoconf
pkg-config
bun
rustup
cmake
# haskell stuff
haskell.compiler.ghc910
cabal-install
stack
# nix stuff
nixpkgs-fmt
nixfmt-classic
nix-tree
nil
nixd
# elixir stuff
elixir
elixir-ls
inotify-tools
# python
python3
uv
basedpyright
# misc
flyctl
httpie
beekeeper-studio
exercism
neil
];
}
{ ... }: { imports = [ ./base.nix ]; }

View file

@ -0,0 +1,6 @@
# It's Elixir, a BEAM language.
{ pkgs, ... }:
{
home.packages = with pkgs; [ elixir elixir-ls ];
}

View file

@ -0,0 +1,6 @@
# The _smartest_ programming language.
{ pkgs, ... }:
{
home.packages = with pkgs; [ haskell.compiler.ghc910 cabal-install stack ];
}

View file

@ -0,0 +1,14 @@
# Java and it's sub-Javas (Clojure, etc)
{ pkgs, ... }:
{
home.packages = with pkgs; [
# java
jdk
# clojure
clojure
clojure-lsp
neil
];
}

View file

@ -0,0 +1,6 @@
# NodeJS, JavaScript, and more!
{ pkgs, ... }:
{
home.packages = with pkgs; [ bun nodejs_22 ];
}

View file

@ -1 +0,0 @@
{ pkgs, ... }: { home.packages = with pkgs; [ nodejs_22 ruby_3_3 jdk ]; }

View file

@ -0,0 +1,14 @@
# Everyone needs a Python setup, right?
{ pkgs, ... }:
{
home.packages = with pkgs; [
python3
# catch-all replacement for _most_ other python stuff
uv
# linter
ruff
# lsp(?)
basedpyright
];
}

View file

@ -0,0 +1,8 @@
# Rust and other adjacent tools.
{ pkgs, ... }:
{
# I use rustup to manage my Rust toolchains, but I may override it
# per-project in a local flake.
home.packages = with pkgs; [ rustup cargo-watch ];
}