Here is the change in my config...
{
home.packages = with pkgs; [
- uutils-coreutils
+ (uutils-coreutils.override { prefix = ""; })
];
}
Here is the change in my config...
{
home.packages = with pkgs; [
- uutils-coreutils
+ (uutils-coreutils.override { prefix = ""; })
];
}
I have a Raspberry PI 5 with a freshly installed Debian 12 (using Raspberry PI Imager). I chose the version without a Desktop environment.
NOTE: this is a brand new environment, and I had nothing to retain (like dotfiles, etc).
Ultimately, I pushed this to here: https://github.com/bartman/nix
Requirements:
My builds:
Hotswap keyboards:
want to write scripts in C++? sure you do.
put c-run
in your path, then you can write scripts in C++ (or in C).
#!/usr/bin/env c-run
#include <iostream>
int main() {
std::cout << "hello world\n";
}
-- ~/.config/nvim/lua/plugins/debugging.lua | |
-- https://github.com/mfussenegger/nvim-dap | |
-- https://github.com/jay-babu/mason-nvim-dap.nvim | |
return { | |
"mfussenegger/nvim-dap", | |
dependencies = { | |
"vadimcn/codelldb", -- lldb | |
"Microsoft/vscode-cpptools", -- gdb | |
"rcarriga/nvim-dap-ui", |
#!/bin/bash | |
SELF="${0##*/}" | |
DEBUG=false | |
OBJ= SYM= PREFIX= | |
dbg() { $DEBUG && echo >&2 "# $@" ; } | |
die() { echo >&2 "ERROR: $@" ; exit 1 ; } | |
showhelp() { |
#!/bin/bash | |
set -e | |
die() { echo >&2 "$@" ; exit 1 ; } | |
TGT_IP="$1" | |
TGT_PORT=${2:-6666} | |
if [ -z "$TGT_IP" ] ; then | |
TTY=${SSH_TTY#/dev/} |
" this file goes in ~/.config/nvim/init.vim | |
" you will also need to install vim-plug in ~/.local/share/nvim/site/autoload/plug.vim | |
" see https://github.com/junegunn/vim-plug?tab=readme-ov-file#unix-linux | |
" on first run, use :PlugInstall to download all packages | |
" then reload config with ,so (or restart nvim) | |
syntax on | |
filetype plugin indent on | |
"let mapleader = ',' |
#!/bin/bash | |
#if 0 | |
set -e | |
src=$0 | |
tmp=/tmp/$$.cpp | |
exe=/tmp/$$ | |
sed -e 1d < $src > $tmp | |
trap "rm -f $tmp $exe" EXIT | |
( set -x ; g++ -o $exe $tmp ) | |
$exe "$@" |