1
Fork 0
mirror of https://github.com/thegeneralist01/config.git synced 2026-03-10 02:30:29 +01:00

config: command-line revamp

This commit is contained in:
TheGeneralist 2026-01-18 22:12:00 +01:00
parent 802a38f61b
commit 3f34891413
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4
28 changed files with 1141 additions and 335 deletions

View file

@ -1,62 +1,74 @@
{ pkgs, config, lib, ... }: let
{
pkgs,
config,
lib,
...
}:
let
inherit (lib) optionals optionalAttrs;
in {
in
{
environment.variables.EDITOR = "nvim";
home-manager.sharedModules = [{
programs.neovim = {
enable = true;
};
home.sessionVariables = {
EDITOR = "nvim";
};
home.packages = with pkgs; [
# Lua
luajitPackages.luarocks_bootstrap
lua-language-server
python313
python313Packages.pip
uv
python313Packages.virtualenv
basedpyright
black
nodejs
nodePackages."sass"
] ++ optionals config.onLinux [
#gcc_multi
];
home.file = {
".config/nvim" = {
source = ../dotfiles/nvim;
force = true;
recursive = true;
home-manager.sharedModules = [
{
programs.neovim = {
enable = true;
};
".npmrc" = {
force = true;
text = ''
prefix=~/.npm-packages
color=true
'';
};
} // optionalAttrs config.onLinux {
".config/i3status" = {
source = ../dotfiles/i3status;
force = true;
recursive = true;
};
};
# TODO: make this normal
# programs.npm.npmrc = ''
# prefix=~/.npm-packages
# color=true
# '';
home.sessionVariables = {
EDITOR = "nvim";
};
home.sessionPath = [ "node_modules/.bin" ];
}];
home.packages =
with pkgs;
[
# Lua
luajitPackages.luarocks_bootstrap
lua-language-server
python313
python313Packages.pip
uv
python313Packages.virtualenv
basedpyright
black
nodejs
nodePackages."sass"
]
++ optionals config.onLinux [
#gcc_multi
];
home.file = {
".config/nvim" = {
source = ../dotfiles/nvim;
force = true;
recursive = true;
};
".npmrc" = {
force = true;
text = ''
prefix=~/.npm-packages
color=true
'';
};
}
// optionalAttrs config.onLinux {
".config/i3status" = {
source = ../dotfiles/i3status;
force = true;
recursive = true;
};
};
# TODO: the two from the last (below) should be somehow moved to their own files
home.sessionPath = [
"node_modules/.bin"
"/opt/homebrew/bin"
"$HOME/.npm-packages/bin"
];
}
];
}