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:
parent
802a38f61b
commit
3f34891413
28 changed files with 1141 additions and 335 deletions
|
|
@ -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"
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue