Removing micromamba & adding terra1

This commit is contained in:
Ari Sosnovsky committed 2024-07-31 11:15:44 -04:00
1 parent 753f21b3fe
commit aeed937874
2 files changed
+13 -9

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
{ user }:
{ pkgs, lib, config, ... }: {
imports = [ ./hl-minipc2.hardware-configuration.nix ];
# firmware updater
services.fwupd.enable = true;
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
}
+3 -9
View File
@@ -21,11 +21,10 @@ in
}; };
home-manager.users.${user.name} = { home-manager.users.${user.name} = {
home = { home = {
sessionVariables = { MAMBA_ROOT_PREFIX = "$HOME/.local/micromamba"; }; sessionVariables = { };
stateVersion = version; stateVersion = version;
shellAliases = { shellAliases = {
cat = "bat"; cat = "bat";
conda = "micromamba";
}; };
packages = with pkgs; packages = with pkgs;
[ jq nixfmt-classic devenv ipfetch nixd ] [ jq nixfmt-classic devenv ipfetch nixd ]
@@ -33,7 +32,6 @@ in
rye rye
uv uv
devbox devbox
micromamba
terraform terraform
kubectl kubectl
] else ] else
@@ -75,13 +73,9 @@ in
zsh = { zsh = {
enable = true; enable = true;
autosuggestion.enable = true; autosuggestion.enable = true;
initExtra = (if enableDevelopmentKit then '' initExtra = ''
export MAMBA_ROOT_PREFIX="$HOME/.local/micromamba"
source <(micromamba shell hook --root-prefix=$MAMBA_ROOT_PREFIX)
export PROMPT='%(!.%{%F{yellow}%}.)$USER@%{$fg[white]%}%M %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)' export PROMPT='%(!.%{%F{yellow}%}.)$USER@%{$fg[white]%}%M %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'
'' else '' '';
export PROMPT='%(!.%{%F{yellow}%}.)$USER@%{$fg[white]%}%M %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'
'');
}; };
zsh.oh-my-zsh = { zsh.oh-my-zsh = {
enable = true; enable = true;