1
0

Update current configuration

This commit is contained in:
Jip J. Dekker 2025-03-03 20:27:47 +11:00
parent d420733f1a
commit 5e44bde3c3
No known key found for this signature in database
4 changed files with 21 additions and 106 deletions

View File

@ -10,11 +10,11 @@
# Communication Tools # Communication Tools
"beeper" "beeper"
"microsoft-teams"
"zoom" "zoom"
"zulip" "zulip"
# Utility Tools # Utility Tools
"calibre"
"google-drive" "google-drive"
"skim" "skim"
@ -27,4 +27,7 @@
# Fonts # Fonts
"font-playfair-display" "font-playfair-display"
# Games
"battle-net"
] ]

18
flake.lock generated
View File

@ -7,11 +7,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1736820923, "lastModified": 1739553546,
"narHash": "sha256-SDuKLOWAh8VJRXlNWQn9QE99bjeEUAAbYXqrKGbsiyk=", "narHash": "sha256-L4ou3xfOr17EAe836djRoQ7auVkYOREMtiQa82wVGqU=",
"owner": "LnL7", "owner": "LnL7",
"repo": "nix-darwin", "repo": "nix-darwin",
"rev": "944c2b181792ae7ae6b20c0df3f44879c11706c9", "rev": "353846417f985e74fdc060555f17939e4472ea2c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -28,11 +28,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1736373539, "lastModified": 1739757849,
"narHash": "sha256-dinzAqCjenWDxuy+MqUQq0I4zUSfaCvN9rzuCmgMZJY=", "narHash": "sha256-Gs076ot1YuAAsYVcyidLKUMIc4ooOaRGO0PqTY7sBzA=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "bd65bc3cde04c16755955630b344bc9e35272c56", "rev": "9d3d080aec2a35e05a15cedd281c2384767c2cfe",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -44,11 +44,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1736780541, "lastModified": 1740865531,
"narHash": "sha256-6AwU5WC45Ww5q5qVR/AzKS4CeZzgOhclBKi5H7zrCnI=", "narHash": "sha256-h00vGIh/jxcGl8aWdfnVRD74KuLpyY3mZgMFMy7iKIc=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "31206f5a1d081808b14aef7b48f7c214d902b8c0", "rev": "5ef6c425980847c78a80d759abc476e941a9bf42",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -6,12 +6,6 @@ in
bat.enable = true; bat.enable = true;
direnv = {
enable = true;
enableNushellIntegration = true;
nix-direnv.enable = true;
};
eza = { eza = {
enable = true; enable = true;
}; };
@ -67,19 +61,6 @@ in
}; };
}; };
jujutsu = {
enable = true;
settings = {
signing = {
sign-all = true;
backend = "ssh";
key = sshSignKey;
};
user = { inherit email name; };
ui.editor = "zed -w";
};
};
kitty = { kitty = {
darwinLaunchOptions = [ "--single-instance" ]; darwinLaunchOptions = [ "--single-instance" ];
enable = true; enable = true;
@ -94,80 +75,6 @@ in
themeFile = "Catppuccin-Latte"; themeFile = "Catppuccin-Latte";
}; };
# Shared shell configuration
nushell = {
enable = true;
shellAliases = {
edit = "^($env.VISUAL)";
start = "^open";
less = "bat";
set-light-theme = "kitty +kitten themes GitHub Dark";
set-dark-theme = "kitty +kitten themes GitHub Light";
brew-backup = "brew bundle dump --global --no-lock --formula --cask --mas --tap --force";
brew-cleanup = "brew bundle cleanup --global --no-lock --force --zap";
brew-restore = "brew bundle install --global --no-lock";
};
environmentVariables = {
# Set default editor
EDITOR = ''"nvim"'';
VISUAL = ''"codium"'';
# DISABLE VI INDICATORS
PROMPT_INDICATOR_VI_INSERT = ''""'';
PROMPT_INDICATOR_VI_NORMAL = ''""'';
# Alias for Monash compute cluster
OPTCLUSTER = ''"compute.optimisation-2020.cloud.edu.au"'';
# CMake settings
CMAKE_EXPORT_COMPILE_COMMANDS = ''"1"''; # output compile-commands.json for clangd
CMAKE_GENERATOR = ''"Ninja Multi-Config"''; # use Ninja generator by default
CMAKE_C_COMPILER_LAUNCHER = ''"ccache"'';
CMAKE_CXX_COMPILER_LAUNCHER = ''"ccache"'';
# Homebrew shell setup (brew shellenv)
HOMEBREW_PREFIX = ''"/opt/homebrew"'';
HOMEBREW_CELLAR = ''"/opt/homebrew/Cellar"'';
HOMEBREW_REPOSITORY = ''"/opt/homebrew"'';
INFOPATH = ''"/opt/homebrew/share/info"'';
# Set MANPATH
MANPATH = ''"/usr/share/man:/usr/local/share/man:/Library/TeX/Distributions/.DefaultTeX/Contents/Man:/opt/homebrew/share/man"'';
NIX_PROFILES = ''$"/nix/var/nix/profiles/default:($env.HOME)/.nix-profile"'';
};
envFile.text = ''
if not 'config' in $env {
$env.config = ([] | into record)
}
$env.config = ($env.config | upsert show_banner false)
$env.config = ($env.config | upsert rm.always_trash true)
$env.config = ($env.config | upsert edit_mode vi)
$env.config = ($env.config | upsert history.max_size 100000)
$env.config = ($env.config | upsert footer_mode auto)
$env.config = ($env.config | upsert history.file_format "sqlite")
'';
configFile.text = ''
# Specifies how environment variables are:
# - converted from a string to a value on Nushell startup (from_string)
# - converted from a value back to a string when running external commands (to_string)
# Note: The conversions happen *after* config.nu is loaded
$env.ENV_CONVERSIONS = {
"PATH": {
from_string: { |s| $s | split row (char esep) | path expand --no-symlink }
to_string: { |v| $v | path expand --no-symlink | str join (char esep) }
}
}
# Add entries to PATH:
# From MacOS helper (/usr/libexec/path_helper)
$env.PATH = ($env.PATH | split row (char esep) | append $"($env.HOME)/.nix-profile/bin")
$env.PATH = ($env.PATH | split row (char esep) | append "/nix/var/nix/profiles/default/bin")
$env.PATH = ($env.PATH | split row (char esep) | append "/Library/TeX/texbin")
$env.PATH = ($env.PATH | split row (char esep) | append "/Library/Apple/usr/bin")
$env.PATH = ($env.PATH | split row (char esep) | append "/opt/homebrew/bin")
$env.PATH = ($env.PATH | split row (char esep) | append "/opt/homebrew/sbin")
$env.PATH = ($env.PATH | split row (char esep) | append "/usr/local/bin")
# Other package managers
$env.PATH = ($env.PATH | split row (char esep) | prepend $"($env.HOME)/.local/bin")
$env.PATH = ($env.PATH | split row (char esep) | prepend $"($env.HOME)/.cargo/bin")
'';
};
ssh = { ssh = {
enable = true; enable = true;
matchBlocks = { matchBlocks = {
@ -224,23 +131,28 @@ in
zoxide = { zoxide = {
enable = true; enable = true;
enableNushellIntegration = true;
}; };
zsh = { zsh = {
enable = true; enable = true;
autocd = true; autocd = true;
defaultKeymap = "viins"; defaultKeymap = "viins";
completionInit = ''
autoload -Uz compinit && compinit
zstyle ':completion:*' matcher-list ''' 'm:{a-zA-Z}={A-Za-z}'
'';
shellAliases = { shellAliases = {
edit = "$VISUAL"; edit = "$VISUAL";
start = "open"; start = "open";
less = "bat"; less = "bat";
ls = "eza"; ls = "eza";
# set-light-theme = "kitty +kitten themes Catppuccin-Latte";
# set-dark-theme = "kitty +kitten themes Catppuccin-Frappe";
}; };
sessionVariables = { sessionVariables = {
# Set default editor # Set default editor
EDITOR = "nvim"; EDITOR = "nvim";
VISUAL = "codium"; VISUAL = "zed";
# CMake settings # CMake settings
CMAKE_EXPORT_COMPILE_COMMANDS = "1"; # output compile-commands.json for clangd CMAKE_EXPORT_COMPILE_COMMANDS = "1"; # output compile-commands.json for clangd
CMAKE_GENERATOR = "Ninja Multi-Config"; # use Ninja generator by default CMAKE_GENERATOR = "Ninja Multi-Config"; # use Ninja generator by default

View File

@ -2,10 +2,10 @@
with pkgs; [ with pkgs; [
# General packages for development and system management # General packages for development and system management
hut hut
jujutsu
ltex-ls ltex-ls
mas mas
mdbook mdbook
ouch
pandoc pandoc
tectonic tectonic
texlab texlab