Compare commits

...

7 commits

5 changed files with 50 additions and 36 deletions

View file

@ -3,20 +3,20 @@ let
conda_init = shell: '' conda_init = shell: ''
# >>> conda initialize >>> # >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !! # !! Contents within this block are managed by 'conda init' !!
__conda_setup="$($HOME/miniconda3/bin/conda shell.${shell} 'hook' 2> /dev/null)" __conda_setup="$(${config.xdg.dataHome}/miniconda3/bin/conda shell.${shell} 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
eval "$__conda_setup" eval "$__conda_setup"
else else
if [ -f "$HOME/miniconda3/etc/profile.d/conda.sh" ]; then if [ -f "${config.xdg.dataHome}/miniconda3/etc/profile.d/conda.sh" ]; then
. "$HOME/miniconda3/etc/profile.d/conda.sh" . "${config.xdg.dataHome}/miniconda3/etc/profile.d/conda.sh"
else else
export PATH="$HOME/miniconda3/bin:$PATH" export PATH="${config.xdg.dataHome}/miniconda3/bin:$PATH"
fi fi
fi fi
unset __conda_setup unset __conda_setup
if [ -f "$HOME/miniconda3/etc/profile.d/mamba.sh" ]; then if [ -f "${config.xdg.dataHome}/miniconda3/etc/profile.d/mamba.sh" ]; then
. "$HOME/miniconda3/etc/profile.d/mamba.sh" . "${config.xdg.dataHome}/miniconda3/etc/profile.d/mamba.sh"
fi fi
# <<< conda initialize <<< # <<< conda initialize <<<
@ -30,10 +30,7 @@ let
in { in {
home = { home = {
stateVersion = "23.11"; stateVersion = "23.11";
file = { file = { ".p10k.zsh".source = ./../dotfiles/p10k.zsh; };
".p10k.zsh".source = ./../dotfiles/p10k.zsh;
".local/share/julia/config/startup.jl".source = ./../dotfiles/startup.jl;
};
packages = with pkgs; [ packages = with pkgs; [
act act
cowsay cowsay
@ -58,19 +55,18 @@ in {
python3 python3
quarto quarto
shellcheck shellcheck
tex-fmt
zulu17 zulu17
(texlive.combine { inherit (texlive) scheme-basic latex-bin latexmk; }) (texlive.combine { inherit (texlive) scheme-basic latex-bin latexmk; })
]; ];
sessionVariables = { sessionVariables = {
PAGER = "most"; PAGER = "most";
NXF_HOME = "\${XDG_DATA_HOME:-$HOME/.local/share}/nextflow"; NXF_HOME = "${config.xdg.dataHome}/nextflow";
NXF_CACHE = "\${XDG_CACHE_HOME:-$HOME/.cache}/nextflow"; NXF_CACHE = "${config.xdg.cacheHome}/nextflow";
NXF_CONDA_CACHEDIR = "$NXF_CACHE/conda"; NXF_CONDA_CACHEDIR = "$NXF_CACHE/conda";
NXF_SINGULARITY_CACHEDIR = "$NXF_CACHE/singularity"; NXF_SINGULARITY_CACHEDIR = "$NXF_CACHE/singularity";
JULIA_DEPOT_PATH = "\${XDG_DATA_HOME:-$HOME/.local/share}/julia:"; JULIA_DEPOT_PATH = "${config.xdg.dataHome}/julia:";
JULIA_PKG_USE_CLI_GIT = "true"; JULIA_PKG_USE_CLI_GIT = "true";
# GPG_TTY = "$(tty)";
# SSH_AUTH_SOCK = "$(gpgconf --list-dirs agent-ssh-socket)";
}; };
shellAliases = { shellAliases = {
cat = "bat"; cat = "bat";
@ -200,4 +196,7 @@ in {
''; '';
}; };
}; };
xdg = {
dataFile = { "julia/config/startup.jl".source = ./../dotfiles/startup.jl; };
};
} }

View file

@ -1,15 +1,13 @@
{ config, lib, pkgs, pkgs-unstable, firefox-addons, buildFirefoxXpiAddon, ... }: { config, lib, pkgs, pkgs-unstable, firefox-addons, buildFirefoxXpiAddon, ... }:
let let
packages = import ./../pkgs.nix {
inherit pkgs;
inherit pkgs-unstable;
};
firefox-config = import ./../programs/firefox.nix; firefox-config = import ./../programs/firefox.nix;
zed-config = import ./../programs/zed.nix; zed-config = import ./../programs/zed.nix;
in { in {
home = { home = {
packages = with pkgs; [ packages = with pkgs; [
dejavu_fonts
kdePackages.qtdeclarative kdePackages.qtdeclarative
roboto-slab
sqlitebrowser sqlitebrowser
woodpecker-cli woodpecker-cli
(pkgs.nerdfonts.override { (pkgs.nerdfonts.override {
@ -33,8 +31,8 @@ in {
enableBashIntegration = true; enableBashIntegration = true;
enableSshSupport = true; enableSshSupport = true;
enableZshIntegration = true; enableZshIntegration = true;
defaultCacheTtl = 10800; defaultCacheTtl = 604800;
maxCacheTtl = 21600; maxCacheTtl = 604800;
verbose = true; verbose = true;
}; };
syncthing = { enable = true; }; syncthing = { enable = true; };

View file

@ -1,4 +1,9 @@
{ config, lib, pkgs, pkgs-unstable, ... }: { { config, lib, pkgs, pkgs-unstable, ... }:
let
home-manager-repo = "${config.xdg.configHome}/home-manager";
mkOutOfStoreSymlink = config.lib.file.mkOutOfStoreSymlink;
in {
home = { packages = with pkgs; [ ollama trayscale veracrypt ]; }; home = { packages = with pkgs; [ ollama trayscale veracrypt ]; };
programs = { }; programs = { };
services = { services = {
@ -19,4 +24,22 @@
]; ];
}; };
}; };
xdg = {
configFile = {
"konsolerc".source =
mkOutOfStoreSymlink "${home-manager-repo}/dotfiles/konsolerc";
"yakuakerc".source =
mkOutOfStoreSymlink "${home-manager-repo}/dotfiles/yakuakerc";
};
dataFile = {
"konsole/My Default.profile".source =
mkOutOfStoreSymlink "${home-manager-repo}/dotfiles/MyDefault.profile";
"kio/servicemenus/kate.desktop".source = ./../dotfiles/kate.desktop;
"kio/servicemenus/vlc.desktop".source = ./../dotfiles/vlc.desktop;
"kio/servicemenus/word-to-pdf.desktop".source =
./../dotfiles/word-to-pdf.desktop;
"kio/servicemenus/powerpoint-to-pdf.desktop".source =
./../dotfiles/powerpoint-to-pdf.desktop;
};
};
} }

View file

@ -1,20 +1,6 @@
{ config, lib, pkgs, pkgs-unstable, ... }: { { config, lib, pkgs, pkgs-unstable, ... }: {
fonts = { fontconfig = { enable = true; }; }; fonts = { fontconfig = { enable = true; }; };
home = { home = {
file = {
"${config.xdg.configHome}/konsolerc".source = ./../dotfiles/konsolerc;
"${config.xdg.configHome}/yakuakerc".source = ./../dotfiles/yakuakerc;
"${config.xdg.dataHome}/konsole/My Default.profile".source =
./../dotfiles/MyDefault.profile;
"${config.xdg.dataHome}/kio/servicemenus/kate.desktop".source =
./../dotfiles/kate.desktop;
"${config.xdg.dataHome}/kio/servicemenus/vlc.desktop".source =
./../dotfiles/vlc.desktop;
"${config.xdg.dataHome}/kio/servicemenus/word-to-pdf.desktop".source =
./../dotfiles/word-to-pdf.desktop;
"${config.xdg.dataHome}/kio/servicemenus/powerpoint-to-pdf.desktop".source =
./../dotfiles/powerpoint-to-pdf.desktop;
};
# A notable exception here: R # A notable exception here: R
# R is a very painful program to manage. # R is a very painful program to manage.
# Package compatibility between R versions is abysmal, so I need to keep multiple R versions around.inherit # Package compatibility between R versions is abysmal, so I need to keep multiple R versions around.inherit

View file

@ -39,6 +39,14 @@
}; };
}; };
}; };
LaTeX = {
formatter = {
external = {
command = "tex-fmt";
arguments = [ "--stdin" ];
};
};
};
Nix = { formatter = { external = { command = "nixfmt"; }; }; }; Nix = { formatter = { external = { command = "nixfmt"; }; }; };
}; };
preview_tabs = { enabled = false; }; preview_tabs = { enabled = false; };