mirror of
https://github.com/dwinkler1/np.git
synced 2026-02-19 14:30:59 -05:00
Remove trailing whitespace from all files (nitpick)
Co-authored-by: dwinkler1 <22460147+dwinkler1@users.noreply.github.com>
This commit is contained in:
parent
2a5a1acd62
commit
8fc712be60
7 changed files with 13 additions and 13 deletions
|
|
@ -83,20 +83,20 @@ Edit the `config` section in `flake.nix` to customize your environment:
|
|||
config = rec {
|
||||
# Name for your project commands (e.g., myproject-r, myproject-py)
|
||||
defaultPackageName = "p";
|
||||
|
||||
|
||||
# Enable/disable language support
|
||||
enabledLanguages = {
|
||||
julia = false; # Julia with Pluto notebooks
|
||||
python = false; # Python with uv package manager
|
||||
r = true; # R with tidyverse and friends
|
||||
};
|
||||
|
||||
|
||||
# Additional features
|
||||
enabledPackages = {
|
||||
gitPlugins = enabledLanguages.r; # R.nvim plugin
|
||||
devenv = false; # Additional dev environment
|
||||
};
|
||||
|
||||
|
||||
# Neovim color scheme
|
||||
theme = rec {
|
||||
colorscheme = "kanagawa"; # cyberdream, onedark, tokyonight, kanagawa
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ templates/rde/
|
|||
|
||||
### 5. Benefits Achieved
|
||||
|
||||
1. **Maintainability**:
|
||||
1. **Maintainability**:
|
||||
- Changes to one language don't affect others
|
||||
- Easy to locate and modify specific functionality
|
||||
- Clear ownership of different components
|
||||
|
|
|
|||
|
|
@ -129,14 +129,14 @@ templates/rde/
|
|||
outputs = { ... }: let
|
||||
# Clear config section
|
||||
config = { ... };
|
||||
|
||||
|
||||
# Import from organized modules
|
||||
rOverlay = import ./overlays/r.nix;
|
||||
pythonOverlay = import ./overlays/python.nix;
|
||||
# ... clean imports ...
|
||||
|
||||
|
||||
# Main configuration
|
||||
projectConfig = forSystems (system:
|
||||
projectConfig = forSystems (system:
|
||||
# ... focused on structure, not details
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@
|
|||
rixOverlay = import ./overlays/rix.nix inputs;
|
||||
extraPkgOverlay = import ./overlays/theme.nix config;
|
||||
projectScriptsOverlay = import ./overlays/project-scripts.nix config;
|
||||
|
||||
|
||||
supportedSystems = [
|
||||
"x86_64-linux"
|
||||
"aarch64-linux"
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
# Generates the help message displayed when entering the dev shell
|
||||
config: pkgs: let
|
||||
inherit (config) defaultPackageName enabledLanguages enabledPackages;
|
||||
|
||||
|
||||
# Build dynamic list of available commands based on enabled languages
|
||||
# Filters out empty strings for disabled languages
|
||||
shellCmds = pkgs.lib.concatLines (pkgs.lib.filter (cmd: cmd != "") [
|
||||
|
|
|
|||
|
|
@ -27,13 +27,13 @@ config: final: prev: let
|
|||
in {
|
||||
# Python project initialization (creates pyproject.toml, adds packages)
|
||||
initPython = prev.writeShellScriptBin "initPython" (substituteScript ../scripts/initPython.sh);
|
||||
|
||||
|
||||
# Project structure setup (creates directories, git repo, .gitignore)
|
||||
initProject = prev.writeShellScriptBin "initProject" (substituteScript ../scripts/initProject.sh);
|
||||
|
||||
|
||||
# Update all dependencies (R packages, Python packages, flake inputs)
|
||||
updateDeps = prev.writeShellScriptBin "updateDeps" (substituteScript ../scripts/updateDeps.sh);
|
||||
|
||||
|
||||
# Activate devenv environment if devenv.nix exists
|
||||
activateDevenv = prev.writeShellScriptBin "activateDevenv" (substituteScript ../scripts/activateDevenv.sh);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
# R packages overlay
|
||||
#
|
||||
#
|
||||
# This overlay configures the R environment with essential packages for data analysis.
|
||||
# It combines packages from rstats-on-nix (rpkgs) with custom packages.
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue