Compare commits

...

6 commits

Author SHA1 Message Date
93f0dcc7b5
Update Zed AI to Claude 3.7 2025-05-01 17:48:37 -05:00
9f0e03b29c
replace conda with micromamba 2025-05-01 17:47:21 -05:00
46b255fdcf
add local Nextflow config 2025-05-01 17:47:21 -05:00
dd68c27f8d
install btop - a cooler htop 2025-05-01 17:34:01 -05:00
c91527e431
install Nextflow 2025-05-01 17:31:08 -05:00
de7492e733
fix Nextflow variables
home-manager does not guarantee that
environment variables are declared in any
particular order. This meant that my
Nextflow variables that referred to
`$NXF_HOME` were declared before
`$NXF_HOME` was declared, so they were
pointing to the wrong directories. Fix
that.
2025-05-01 17:30:48 -05:00
3 changed files with 32 additions and 21 deletions

View file

@ -1,24 +1,7 @@
{ config, lib, pkgs, pkgs-unstable, ... }: { config, lib, pkgs, pkgs-unstable, ... }:
let let
conda_init = shell: '' conda_init = shell: ''
# >>> conda initialize >>> eval "$(${pkgs.micromamba}/bin/micromamba shell hook --shell ${shell})"
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$(${config.xdg.dataHome}/miniconda3/bin/conda shell.${shell} 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "${config.xdg.dataHome}/miniconda3/etc/profile.d/conda.sh" ]; then
. "${config.xdg.dataHome}/miniconda3/etc/profile.d/conda.sh"
else
export PATH="${config.xdg.dataHome}/miniconda3/bin:$PATH"
fi
fi
unset __conda_setup
if [ -f "${config.xdg.dataHome}/miniconda3/etc/profile.d/mamba.sh" ]; then
. "${config.xdg.dataHome}/miniconda3/etc/profile.d/mamba.sh"
fi
# <<< conda initialize <<<
''; '';
nd_bash_function = '' nd_bash_function = ''
@ -33,6 +16,7 @@ in {
file = { ".p10k.zsh".source = ./../dotfiles/p10k.zsh; }; file = { ".p10k.zsh".source = ./../dotfiles/p10k.zsh; };
packages = with pkgs; [ packages = with pkgs; [
act act
btop
cowsay cowsay
earthly earthly
ffmpeg ffmpeg
@ -47,7 +31,9 @@ in {
jq jq
julia-bin julia-bin
lynx lynx
micromamba
most most
nextflow
nil nil
nixd nixd
nixfmt-classic nixfmt-classic
@ -61,10 +47,11 @@ in {
]; ];
sessionVariables = { sessionVariables = {
PAGER = "most"; PAGER = "most";
MAMBA_ROOT_PREFIX = "${config.xdg.dataHome}/micromamba";
NXF_HOME = "${config.xdg.dataHome}/nextflow"; NXF_HOME = "${config.xdg.dataHome}/nextflow";
NXF_CACHE = "${config.xdg.cacheHome}/nextflow"; NXF_CACHE = "${config.xdg.cacheHome}/nextflow";
NXF_CONDA_CACHEDIR = "$NXF_CACHE/conda"; NXF_CONDA_CACHEDIR = "${config.xdg.cacheHome}/nextflow/conda";
NXF_SINGULARITY_CACHEDIR = "$NXF_CACHE/singularity"; NXF_SINGULARITY_CACHEDIR = "${config.xdg.cacheHome}/nextflow/singularity";
JULIA_DEPOT_PATH = "${config.xdg.dataHome}/julia:"; JULIA_DEPOT_PATH = "${config.xdg.dataHome}/julia:";
JULIA_PKG_USE_CLI_GIT = "true"; JULIA_PKG_USE_CLI_GIT = "true";
}; };

View file

@ -58,4 +58,28 @@
pinentryPackage = pkgs.pinentry-qt; pinentryPackage = pkgs.pinentry-qt;
}; };
}; };
xdg = {
configFile = {
"nextflow.config".text = ''
params {
config_profile_description = 'harmony Asahi Linux local profile'
config_profile_contact = 'Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>'
config_profile_url = null
max_memory = 12.GB
max_cpus = 12
max_time = 7.d
}
apptainer {
enabled = true
autoMounts = true
}
process {
executor = 'local'
}
'';
};
};
} }

View file

@ -20,7 +20,7 @@
assistant = { assistant = {
default_model = { default_model = {
provider = "zed.dev"; provider = "zed.dev";
model = "claude-3-5-sonnet-latest"; model = "claude-3-7-sonnet-latest";
}; };
version = "2"; version = "2";
}; };