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