dendritic migration
dendritic migration
This commit is contained in:
20
modules/_lib/build-rust-package.nix
Normal file
20
modules/_lib/build-rust-package.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
inputs,
|
||||
input,
|
||||
prev,
|
||||
}: let
|
||||
naersk-lib = prev.callPackage inputs.naersk {};
|
||||
manifest = (prev.lib.importTOML "${input}/Cargo.toml").package;
|
||||
in
|
||||
naersk-lib.buildPackage {
|
||||
pname = manifest.name;
|
||||
version = manifest.version;
|
||||
|
||||
src = input;
|
||||
|
||||
nativeBuildInputs = [prev.pkg-config];
|
||||
buildInputs = [prev.openssl];
|
||||
OPENSSL_NO_VENDOR = 1;
|
||||
|
||||
doCheck = false;
|
||||
}
|
||||
14
modules/_lib/constants.nix
Normal file
14
modules/_lib/constants.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
user = "cschmatzler";
|
||||
|
||||
sshKeys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHfRZQ+7ejD3YHbyMTrV0gN1Gc0DxtGgl5CVZSupo5ws"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL/I+/2QT47raegzMIyhwMEPKarJP/+Ox9ewA4ZFJwk/"
|
||||
];
|
||||
|
||||
stateVersions = {
|
||||
darwin = 6;
|
||||
nixos = "25.11";
|
||||
homeManager = "25.11";
|
||||
};
|
||||
}
|
||||
10
modules/_lib/open-project.nix
Normal file
10
modules/_lib/open-project.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{pkgs}:
|
||||
pkgs.writeShellScriptBin "open-project" ''
|
||||
TARGET=$(fd -t d --exact-depth 1 . $HOME/Projects |
|
||||
sed "s~$HOME/Projects/~~" |
|
||||
fzf --prompt "project > ")
|
||||
|
||||
if [ -n "$TARGET" ]; then
|
||||
echo "$HOME/Projects/$TARGET"
|
||||
fi
|
||||
''
|
||||
66
modules/_lib/packages.nix
Normal file
66
modules/_lib/packages.nix
Normal file
@@ -0,0 +1,66 @@
|
||||
{
|
||||
inputs,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with pkgs;
|
||||
[
|
||||
(callPackage ./open-project.nix {})
|
||||
age
|
||||
alejandra
|
||||
ast-grep
|
||||
bun
|
||||
delta
|
||||
devenv
|
||||
dig
|
||||
docker
|
||||
docker-compose
|
||||
dust
|
||||
fastfetch
|
||||
fd
|
||||
gh
|
||||
git
|
||||
glow
|
||||
gnumake
|
||||
gnupg
|
||||
hledger
|
||||
htop
|
||||
hyperfine
|
||||
jj-ryu
|
||||
jj-starship
|
||||
jq
|
||||
killall
|
||||
lsof
|
||||
nodejs_24
|
||||
nurl
|
||||
openssh
|
||||
ouch
|
||||
ov
|
||||
pnpm
|
||||
postgresql_17
|
||||
sd
|
||||
serie
|
||||
sops
|
||||
sqlite
|
||||
tea
|
||||
tokei
|
||||
tree
|
||||
tree-sitter
|
||||
tuicr
|
||||
vivid
|
||||
]
|
||||
++ lib.optionals stdenv.isDarwin [
|
||||
_1password-gui
|
||||
alcove
|
||||
dockutil
|
||||
mas
|
||||
raycast
|
||||
tailscale
|
||||
xcodes
|
||||
]
|
||||
++ lib.optionals stdenv.isLinux [
|
||||
gcc15
|
||||
ghostty.terminfo
|
||||
lm_sensors
|
||||
]
|
||||
11
modules/_lib/wallpaper.nix
Normal file
11
modules/_lib/wallpaper.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{pkgs}: let
|
||||
wallpaper =
|
||||
pkgs.fetchurl {
|
||||
url = "https://misc-assets.raycast.com/wallpapers/bright-rain.png";
|
||||
sha256 = "sha256-wQT4I2X3gS6QFsEb7MdRsn4oX7FNkflukXPGMFbJZ10=";
|
||||
};
|
||||
in
|
||||
pkgs.writeShellScriptBin "set-wallpaper-script" ''
|
||||
set -e
|
||||
/usr/bin/osascript -e "tell application \"Finder\" to set desktop picture to POSIX file \"${wallpaper}\""
|
||||
''
|
||||
Reference in New Issue
Block a user