Compare commits
18
Commits
1fdb0cdc3e
...
vsketch
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b138b37378 | ||
|
|
a06d15ccd3 | ||
|
|
5e24c62d7b | ||
|
|
ca6ddc4b48 | ||
|
|
a13fbca07b | ||
|
|
d9d1061436 | ||
|
|
421f42e5f5 | ||
|
|
12f04133c2 | ||
|
|
92fa9b7456 | ||
|
|
8b48e295c6 | ||
|
|
303bf80633 | ||
|
|
de3eb544a8 | ||
|
|
acdb913edb | ||
|
|
41a9a18e0a | ||
|
|
a0b974e71a | ||
|
|
f923fb7717 | ||
|
|
969e5e5dd3 | ||
|
|
3e6a7391df |
No files matched your search
@@ -2,7 +2,6 @@ README.md~
|
||||
.DS_Store
|
||||
result
|
||||
dump.txt
|
||||
flake.lock
|
||||
*~
|
||||
Platformio - NixOS Wiki*
|
||||
.platformio/
|
||||
@@ -7,3 +7,49 @@ Started with a configuration generated from [this nixos config template](https:/
|
||||
Initialy created 'with secrets' but stripped out the git/agenix in favor of sops
|
||||
|
||||
Refactored the configuration to remove nixos but keep the shared modules and Darwin host setup, with no NixOS trees or Linux app targets.
|
||||
|
||||
## Emacs and binary caches
|
||||
|
||||
The Emacs overlay is a flake input pinned in `flake.lock`. Keep the lock file
|
||||
in version control so builds use the same input revisions. Update only the
|
||||
overlay with:
|
||||
|
||||
```sh
|
||||
nix flake update emacs-overlay
|
||||
```
|
||||
|
||||
Emacs uses the unmodified release package from each architecture's nixpkgs,
|
||||
rather than `emacs-git`, to reuse builds from `https://cache.nixos.org`.
|
||||
The overlay still supplies `emacsWithPackagesFromUsePackage` and the Lisp
|
||||
package definitions. The installed Emacs and launchd daemon share the same
|
||||
configured package; client launchers use the matching release Emacs client.
|
||||
|
||||
Both the NixOS and nix-community caches are configured in the Darwin host.
|
||||
Cache availability depends on the locked revisions and architecture. Check the
|
||||
base Emacs build without compiling (substitute `x86_64-darwin` for Intel):
|
||||
|
||||
```sh
|
||||
nix build --dry-run '.#darwinConfigurations.aarch64-darwin.pkgs.emacs'
|
||||
```
|
||||
|
||||
The custom Lisp package collection and wrapper may still need local builds.
|
||||
|
||||
## vsketch
|
||||
|
||||
The local overlay packages vsketch 1.2.0 and its vpype dependencies from pinned
|
||||
sources. Upstream supports Python 3.11 through 3.13, but not Python 3.14.
|
||||
On Apple Silicon, the existing Python 3.14 environment remains unchanged;
|
||||
use `python3.13` to import vsketch. On Intel, vsketch is included in the
|
||||
existing Python 3.13 environment and can also be imported with `python3`.
|
||||
Both systems provide the `vsk` and `vpype` commands after applying the
|
||||
configuration.
|
||||
|
||||
Add more Python 3.13 libraries to `vsketchPythonPackages` in
|
||||
[`overlays/30-vsketch.nix`](overlays/30-vsketch.nix). On Apple Silicon, add
|
||||
any corresponding command-line executables to the list in `vsketch-python` if
|
||||
they should also be available on `PATH`.
|
||||
|
||||
```sh
|
||||
python3.13 -c 'import vsketch; print(vsketch.__version__)'
|
||||
vsk --help
|
||||
```
|
||||
@@ -113,20 +113,11 @@ confirm_details
|
||||
replace_tokens() {
|
||||
local file="$1"
|
||||
if [[ $(basename $1) != "apply" ]]; then
|
||||
if [[ "$OS" == "Darwin" ]]; then
|
||||
# macOS
|
||||
LC_ALL=C LANG=C sed -i '' -e "s/%USER%/$USERNAME/g" "$file"
|
||||
LC_ALL=C LANG=C sed -i '' -e "s/%EMAIL%/$GIT_EMAIL/g" "$file"
|
||||
LC_ALL=C LANG=C sed -i '' -e "s/%NAME%/$GIT_NAME/g" "$file"
|
||||
else
|
||||
# Linux or other
|
||||
sed -i -e "s/%USER%/$USERNAME/g" "$file"
|
||||
sed -i -e "s/%EMAIL%/$GIT_EMAIL/g" "$file"
|
||||
sed -i -e "s/%NAME%/$GIT_NAME/g" "$file"
|
||||
sed -i -e "s/%INTERFACE%/$PRIMARY_IFACE/g" "$file"
|
||||
sed -i -e "s/%DISK%/$BOOT_DISK/g" "$file"
|
||||
sed -i -e "s/%HOST%/$HOST_NAME/g" "$file"
|
||||
fi
|
||||
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
@@ -113,20 +113,10 @@ confirm_details
|
||||
replace_tokens() {
|
||||
local file="$1"
|
||||
if [[ $(basename $1) != "apply" ]]; then
|
||||
if [[ "$OS" == "Darwin" ]]; then
|
||||
# macOS
|
||||
LC_ALL=C LANG=C sed -i '' -e "s/%USER%/$USERNAME/g" "$file"
|
||||
LC_ALL=C LANG=C sed -i '' -e "s/%EMAIL%/$GIT_EMAIL/g" "$file"
|
||||
LC_ALL=C LANG=C sed -i '' -e "s/%NAME%/$GIT_NAME/g" "$file"
|
||||
else
|
||||
# Linux or other
|
||||
sed -i -e "s/%USER%/$USERNAME/g" "$file"
|
||||
sed -i -e "s/%EMAIL%/$GIT_EMAIL/g" "$file"
|
||||
sed -i -e "s/%NAME%/$GIT_NAME/g" "$file"
|
||||
sed -i -e "s/%INTERFACE%/$PRIMARY_IFACE/g" "$file"
|
||||
sed -i -e "s/%DISK%/$BOOT_DISK/g" "$file"
|
||||
sed -i -e "s/%HOST%/$HOST_NAME/g" "$file"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Generated
+533
@@ -0,0 +1,533 @@
|
||||
{
|
||||
"nodes": {
|
||||
"brew-src": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1793848894,
|
||||
"narHash": "sha256-oF6be7dc6sTCLFatoXUGRdKjtY1BZWS6BgTUjvkyz8I=",
|
||||
"owner": "Homebrew",
|
||||
"repo": "brew",
|
||||
"rev": "a9d43520339db6b3502437003358754645d97d42",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "Homebrew",
|
||||
"ref": "main",
|
||||
"repo": "brew",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"bun2nix": {
|
||||
"inputs": {
|
||||
"flake-parts": [
|
||||
"llm-agents",
|
||||
"flake-parts"
|
||||
],
|
||||
"nixpkgs": [
|
||||
"llm-agents",
|
||||
"nixpkgs"
|
||||
],
|
||||
"systems": [
|
||||
"llm-agents",
|
||||
"systems"
|
||||
],
|
||||
"treefmt-nix": [
|
||||
"llm-agents",
|
||||
"treefmt-nix"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1790001035,
|
||||
"narHash": "sha256-1/SLBjSYBzDdDhvLQ83wrzBakyS/xNGgtxHGNuveOEQ=",
|
||||
"owner": "Mic92",
|
||||
"repo": "bun2nix",
|
||||
"rev": "07a5bfc8ac36c5370199343fa620b69f63186e33",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "Mic92",
|
||||
"ref": "llm-agents",
|
||||
"repo": "bun2nix",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"catppuccin": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1793368344,
|
||||
"narHash": "sha256-ojN7KpXLYv6NgJ2OMn7cPioc46g7UB1pd4tBf//3S1U=",
|
||||
"owner": "catppuccin",
|
||||
"repo": "nix",
|
||||
"rev": "feac189528d08ca7c46bf1605d84b78ea5fe8263",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "catppuccin",
|
||||
"repo": "nix",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"darwinAarch64": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgsAarch64"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1793418699,
|
||||
"narHash": "sha256-+RpTlcdh9KqZ+ZiLkNSTvibQWm935EcIdBzRPCTFsrQ=",
|
||||
"owner": "nix-darwin",
|
||||
"repo": "nix-darwin",
|
||||
"rev": "ff0e21a414d4547183396da1b44a66f2577b65e9",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-darwin",
|
||||
"repo": "nix-darwin",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"darwinX86": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgsX86"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1792800221,
|
||||
"narHash": "sha256-53jIZEWNh96irEXhsMZFoNhLJgGSU3nYl1i4wFQHAsU=",
|
||||
"owner": "nix-darwin",
|
||||
"repo": "nix-darwin",
|
||||
"rev": "d31953cf55f9027a56e9be938daf5db8c5655663",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-darwin",
|
||||
"ref": "nix-darwin-26.05",
|
||||
"repo": "nix-darwin",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"emacs-overlay": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgsAarch64"
|
||||
],
|
||||
"nixpkgs-stable": [
|
||||
"nixpkgsX86"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1793858843,
|
||||
"narHash": "sha256-E02opwNPxvbTEBaXIWbRWJzDKc8lI4eOyNb3aIkgGek=",
|
||||
"owner": "nix-community",
|
||||
"repo": "emacs-overlay",
|
||||
"rev": "0c6da07b9a55b867e472bce80321ddde5e361e36",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"repo": "emacs-overlay",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"flake-parts": {
|
||||
"inputs": {
|
||||
"nixpkgs-lib": [
|
||||
"llm-agents",
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1793576659,
|
||||
"narHash": "sha256-V1h85lUaJBQoHFrB2vpXZOE0Ju1MYSnIpsehoVZYlDo=",
|
||||
"owner": "hercules-ci",
|
||||
"repo": "flake-parts",
|
||||
"rev": "ea2630b7470978622c7689a1ff75d2b389175399",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "hercules-ci",
|
||||
"repo": "flake-parts",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"flake-parts_2": {
|
||||
"inputs": {
|
||||
"nixpkgs-lib": "nixpkgs-lib"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1790898470,
|
||||
"narHash": "sha256-zTwuwezD0w3hpga6a6P8emidzAZFyWqlNeRBlpWOOl8=",
|
||||
"owner": "hercules-ci",
|
||||
"repo": "flake-parts",
|
||||
"rev": "024633cd702b10285db5cb19b40ad48d2399ba60",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "hercules-ci",
|
||||
"repo": "flake-parts",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"homeManagerAarch64": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgsAarch64"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1793757180,
|
||||
"narHash": "sha256-gyV7AtCwLnOImcrfSETP4J3Ie96bz19DY47B7m7Y3HM=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "b787c48e2ec57a9d098f5c2721882a3bc1e16f97",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"homeManagerX86": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgsX86"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1792818383,
|
||||
"narHash": "sha256-199i7ubVSXTMl+0AAlL7cVCXSjcI+jWByMcimYjeMX0=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "24f2190587513b9c2f73db112a17844ae912d965",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"ref": "release-26.05",
|
||||
"repo": "home-manager",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"homebrew-cask": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1793862020,
|
||||
"narHash": "sha256-5vzo2I5QQB/6YLxNjWg+EQxsG0aIdmSxDBjipQH+2h0=",
|
||||
"owner": "homebrew",
|
||||
"repo": "homebrew-cask",
|
||||
"rev": "8da1dbde4e7c68ca1d7387518e63a5bbb0c094da",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "homebrew",
|
||||
"repo": "homebrew-cask",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"homebrew-core": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1793863650,
|
||||
"narHash": "sha256-h1o9D5Id6PxS6zKo1+Sdfb71eDumZfRoQJY5uoxDu/0=",
|
||||
"owner": "homebrew",
|
||||
"repo": "homebrew-core",
|
||||
"rev": "4841d0b691f167eab0c3d6f2fa6c675152930bcd",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "homebrew",
|
||||
"repo": "homebrew-core",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"llm-agents": {
|
||||
"inputs": {
|
||||
"bun2nix": "bun2nix",
|
||||
"flake-parts": "flake-parts",
|
||||
"nixpkgs": "nixpkgs_2",
|
||||
"systems": "systems",
|
||||
"treefmt-nix": "treefmt-nix"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1793859612,
|
||||
"narHash": "sha256-DDsPI44qOjlRdnWbaVlcU5iwUPfadigR4oUrVWq2G0I=",
|
||||
"owner": "numtide",
|
||||
"repo": "llm-agents.nix",
|
||||
"rev": "499fb79f92064e92cdb968d12ffeb92d36243b50",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "llm-agents.nix",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nix-homebrew": {
|
||||
"inputs": {
|
||||
"brew-src": [
|
||||
"brew-src"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1793543863,
|
||||
"narHash": "sha256-oDYLVD8KGT/M57c8HziYSSj0le4wCyA+jZ7+/qUS91M=",
|
||||
"owner": "zhaofengli-wip",
|
||||
"repo": "nix-homebrew",
|
||||
"rev": "52bc87da3f30c2261a6d1cfef3c892097b53daeb",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "zhaofengli-wip",
|
||||
"repo": "nix-homebrew",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nix-vscode-extensions": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs_3"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1793858512,
|
||||
"narHash": "sha256-nxf3EXrBDlE7cdegugVbjqt2U5ZEu+N4bSLm8BQY5KI=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nix-vscode-extensions",
|
||||
"rev": "8189e2ea7d684a68670b4768e4dc31480d47d21d",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"repo": "nix-vscode-extensions",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixd": {
|
||||
"inputs": {
|
||||
"flake-parts": "flake-parts_2",
|
||||
"nixpkgs": "nixpkgs_4",
|
||||
"treefmt-nix": "treefmt-nix_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1793434408,
|
||||
"narHash": "sha256-7Or+JZCkzmGaXESxQV+pXHhyPzpUselYv2Gk1xqWrRo=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixd",
|
||||
"rev": "47d603c736a2fd3a424ddf38020df5dcc8aea696",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"repo": "nixd",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1793225069,
|
||||
"narHash": "sha256-GYpArmwi/iMuX2ov31oCBhAXRMJdNX9kOl2LZHCuR6M=",
|
||||
"rev": "e62746b0b472753ef019baceab6f1e2e52014980",
|
||||
"type": "tarball",
|
||||
"url": "https://releases.nixos.org/nixpkgs/nixpkgs-26.11pre1104102.e62746b0b472/nixexprs.tar.zst"
|
||||
},
|
||||
"original": {
|
||||
"type": "tarball",
|
||||
"url": "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.zst"
|
||||
}
|
||||
},
|
||||
"nixpkgs-lib": {
|
||||
"locked": {
|
||||
"lastModified": 1790477367,
|
||||
"narHash": "sha256-oujbxmVKDhci2E4EM3KyAbRUgp5/IsCoiA/LfEF7OOk=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixpkgs.lib",
|
||||
"rev": "f7cd230690d9fc982d06129f9189b101fddcfa3b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"repo": "nixpkgs.lib",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgsAarch64": {
|
||||
"locked": {
|
||||
"lastModified": 1793795574,
|
||||
"narHash": "sha256-pgG/CO+txdf2sA2z6DsM+2G3F9ajfIp/3BMC4wfKMDY=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "13e53762c5afaf384d4614e94527a9ccfafe41d0",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nixos",
|
||||
"ref": "nixpkgs-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgsX86": {
|
||||
"locked": {
|
||||
"lastModified": 1793671242,
|
||||
"narHash": "sha256-FXXhGUZDRvPAdKFx/eF4E/WG3BnzvkCW2V/Qzs4KBoA=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "4ad2eda5f89410d94c57449a70d08935d9bbb4f6",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nixos",
|
||||
"ref": "nixpkgs-26.05-darwin",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1793795574,
|
||||
"narHash": "sha256-pgG/CO+txdf2sA2z6DsM+2G3F9ajfIp/3BMC4wfKMDY=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "13e53762c5afaf384d4614e94527a9ccfafe41d0",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixpkgs-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs_3": {
|
||||
"locked": {
|
||||
"lastModified": 1784564315,
|
||||
"narHash": "sha256-7OpsHHIZFUBLbeHNQ0oC40DZRQjsmGWodXge+OqgPgk=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "0c2094806c9e542f31785ef3569ab9e900e3ce9c",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "0c2094806c9e542f31785ef3569ab9e900e3ce9c",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs_4": {
|
||||
"locked": {
|
||||
"lastModified": 1790463110,
|
||||
"narHash": "sha256-VZHcT2wKLkApBCACQ2SH4P1jVZUbbOA7jWAGi1MIViw=",
|
||||
"rev": "e158d9ed9b51c98974c5e66e1ba1c9e0255fecaa",
|
||||
"type": "tarball",
|
||||
"url": "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1080189.e158d9ed9b51/nixexprs.tar.xz"
|
||||
},
|
||||
"original": {
|
||||
"type": "tarball",
|
||||
"url": "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"brew-src": "brew-src",
|
||||
"catppuccin": "catppuccin",
|
||||
"darwinAarch64": "darwinAarch64",
|
||||
"darwinX86": "darwinX86",
|
||||
"emacs-overlay": "emacs-overlay",
|
||||
"homeManagerAarch64": "homeManagerAarch64",
|
||||
"homeManagerX86": "homeManagerX86",
|
||||
"homebrew-cask": "homebrew-cask",
|
||||
"homebrew-core": "homebrew-core",
|
||||
"llm-agents": "llm-agents",
|
||||
"nix-homebrew": "nix-homebrew",
|
||||
"nix-vscode-extensions": "nix-vscode-extensions",
|
||||
"nixd": "nixd",
|
||||
"nixpkgsAarch64": "nixpkgsAarch64",
|
||||
"nixpkgsX86": "nixpkgsX86",
|
||||
"sops-nix": "sops-nix"
|
||||
}
|
||||
},
|
||||
"sops-nix": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgsAarch64"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1793657466,
|
||||
"narHash": "sha256-GoOvpdsjO5hqZuO6T6ok9u6sJEjO0iPli2zRr9oNUNw=",
|
||||
"owner": "Mic92",
|
||||
"repo": "sops-nix",
|
||||
"rev": "b18e01ce148eb3efff5de2f2d3181ca53b2b2a54",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "Mic92",
|
||||
"repo": "sops-nix",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"systems": {
|
||||
"locked": {
|
||||
"lastModified": 1791244623,
|
||||
"narHash": "sha256-uuanbkFk8a313Zfrxdcz8Us/yQtaxNnKJtX8v0ZPpd8=",
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"rev": "d36eeed142f88b5a636f2e3856a53c61654cf29b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"treefmt-nix": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"llm-agents",
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1791885023,
|
||||
"narHash": "sha256-C3alQ2MEt0zVrUSho5NUDo3jmhbff72++bfwoqT9Omo=",
|
||||
"owner": "numtide",
|
||||
"repo": "treefmt-nix",
|
||||
"rev": "0d6d739a833ba9a9c93034862e4a7b061a062a1c",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "treefmt-nix",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"treefmt-nix_2": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixd",
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1791885023,
|
||||
"narHash": "sha256-C3alQ2MEt0zVrUSho5NUDo3jmhbff72++bfwoqT9Omo=",
|
||||
"owner": "numtide",
|
||||
"repo": "treefmt-nix",
|
||||
"rev": "0d6d739a833ba9a9c93034862e4a7b061a062a1c",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "treefmt-nix",
|
||||
"type": "github"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
||||
@@ -2,23 +2,42 @@
|
||||
description = "Starter configuration for macOS with nix-darwin";
|
||||
|
||||
inputs = {
|
||||
nixpkgs = {
|
||||
url = "github:nixos/nixpkgs//nixpkgs-26.05-darwin";
|
||||
# url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||
nixpkgsAarch64 = {
|
||||
url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||
};
|
||||
|
||||
home-manager = {
|
||||
nixpkgsX86 = {
|
||||
url = "github:nixos/nixpkgs//nixpkgs-26.05-darwin";
|
||||
};
|
||||
|
||||
emacs-overlay = {
|
||||
url = "github:nix-community/emacs-overlay";
|
||||
inputs.nixpkgs.follows = "nixpkgsAarch64";
|
||||
inputs.nixpkgs-stable.follows = "nixpkgsX86";
|
||||
};
|
||||
|
||||
homeManagerAarch64 = {
|
||||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgsAarch64";
|
||||
};
|
||||
|
||||
homeManagerX86 = {
|
||||
url = "github:nix-community/home-manager/release-26.05";
|
||||
inputs.nixpkgs.follows = "nixpkgsX86";
|
||||
};
|
||||
|
||||
nixd = {
|
||||
url = "github:nix-community/nixd";
|
||||
};
|
||||
|
||||
darwin = {
|
||||
# url = "github:nix-darwin/nix-darwin";
|
||||
darwinAarch64 = {
|
||||
url = "github:nix-darwin/nix-darwin";
|
||||
inputs.nixpkgs.follows = "nixpkgsAarch64";
|
||||
};
|
||||
|
||||
darwinX86 = {
|
||||
url = "github:nix-darwin/nix-darwin/nix-darwin-26.05";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
inputs.nixpkgs.follows = "nixpkgsX86";
|
||||
};
|
||||
|
||||
brew-src = {
|
||||
@@ -43,7 +62,7 @@
|
||||
|
||||
sops-nix = {
|
||||
url = "github:Mic92/sops-nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
inputs.nixpkgs.follows = "nixpkgsAarch64";
|
||||
};
|
||||
|
||||
nix-vscode-extensions = {
|
||||
@@ -67,12 +86,15 @@
|
||||
outputs =
|
||||
{
|
||||
self,
|
||||
darwin,
|
||||
darwinAarch64,
|
||||
darwinX86,
|
||||
nix-homebrew,
|
||||
homebrew-core,
|
||||
homebrew-cask,
|
||||
home-manager,
|
||||
nixpkgs,
|
||||
homeManagerAarch64,
|
||||
homeManagerX86,
|
||||
nixpkgsAarch64,
|
||||
nixpkgsX86,
|
||||
nixd,
|
||||
sops-nix,
|
||||
nix-vscode-extensions,
|
||||
@@ -82,17 +104,33 @@
|
||||
}@inputs:
|
||||
let
|
||||
user = "olaf";
|
||||
lib = nixpkgsAarch64.lib;
|
||||
darwinSystems = [
|
||||
"aarch64-darwin"
|
||||
"x86_64-darwin"
|
||||
];
|
||||
|
||||
forAllSystems = f: nixpkgs.lib.genAttrs darwinSystems f;
|
||||
perSystem = {
|
||||
aarch64-darwin = {
|
||||
nixpkgs = nixpkgsAarch64;
|
||||
darwin = darwinAarch64;
|
||||
home-manager = homeManagerAarch64;
|
||||
pkgs = nixpkgsAarch64.legacyPackages.aarch64-darwin;
|
||||
};
|
||||
x86_64-darwin = {
|
||||
nixpkgs = nixpkgsX86;
|
||||
darwin = darwinX86;
|
||||
home-manager = homeManagerX86;
|
||||
pkgs = nixpkgsX86.legacyPackages.x86_64-darwin;
|
||||
};
|
||||
};
|
||||
|
||||
forAllSystems = f: lib.genAttrs darwinSystems f;
|
||||
|
||||
devShell =
|
||||
system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
pkgs = perSystem.${system}.pkgs;
|
||||
in
|
||||
{
|
||||
default =
|
||||
@@ -125,18 +163,23 @@
|
||||
};
|
||||
};
|
||||
|
||||
mkApp = scriptName: system: {
|
||||
type = "app";
|
||||
program = "${
|
||||
(nixpkgs.legacyPackages.${system}.writeScriptBin scriptName ''
|
||||
mkApp =
|
||||
scriptName: system:
|
||||
let
|
||||
pkgs = perSystem.${system}.pkgs;
|
||||
in
|
||||
{
|
||||
type = "app";
|
||||
program = "${
|
||||
(pkgs.writeScriptBin scriptName ''
|
||||
#!/usr/bin/env bash
|
||||
PATH=${nixpkgs.legacyPackages.${system}.git}/bin:$PATH
|
||||
PATH=${pkgs.git}/bin:$PATH
|
||||
echo "Running ${scriptName} for ${system}"
|
||||
sudo chmod +x ${self}/apps/${system}/${scriptName}
|
||||
exec ${self}/apps/${system}/${scriptName}
|
||||
'')
|
||||
}/bin/${scriptName}";
|
||||
};
|
||||
}/bin/${scriptName}";
|
||||
};
|
||||
|
||||
mkDarwinApps = system: {
|
||||
"apply" = mkApp "apply" system;
|
||||
@@ -147,15 +190,23 @@
|
||||
in
|
||||
{
|
||||
devShells = forAllSystems devShell;
|
||||
apps = nixpkgs.lib.genAttrs darwinSystems mkDarwinApps;
|
||||
apps = lib.genAttrs darwinSystems mkDarwinApps;
|
||||
|
||||
darwinConfigurations = nixpkgs.lib.genAttrs darwinSystems (
|
||||
darwinConfigurations = lib.genAttrs darwinSystems (
|
||||
system:
|
||||
darwin.lib.darwinSystem {
|
||||
let
|
||||
systemConfig = perSystem.${system};
|
||||
in
|
||||
systemConfig.darwin.lib.darwinSystem {
|
||||
inherit system;
|
||||
specialArgs = inputs // { inherit system; };
|
||||
specialArgs = inputs // {
|
||||
inherit system;
|
||||
nixpkgs = systemConfig.nixpkgs;
|
||||
darwin = systemConfig.darwin;
|
||||
home-manager = systemConfig.home-manager;
|
||||
};
|
||||
modules = [
|
||||
home-manager.darwinModules.home-manager
|
||||
systemConfig.home-manager.darwinModules.home-manager
|
||||
nix-homebrew.darwinModules.nix-homebrew
|
||||
{
|
||||
nix-homebrew = {
|
||||
@@ -170,7 +221,7 @@
|
||||
};
|
||||
|
||||
home-manager.sharedModules =
|
||||
nixpkgs.lib.optionals (system != "x86_64-darwin") [
|
||||
lib.optionals (system != "x86_64-darwin") [
|
||||
catppuccin.homeModules.catppuccin
|
||||
];
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
:bind-keymap ("C-c p" . projectile-command-map)
|
||||
:defer 5
|
||||
:config
|
||||
(projectile-global-mode))
|
||||
(projectile-mode +1))
|
||||
|
||||
|
||||
|
||||
|
||||
+15
-14
@@ -7,6 +7,19 @@
|
||||
|
||||
let
|
||||
user = "olaf";
|
||||
configuredEmacs = pkgs.emacsWithPackagesFromUsePackage {
|
||||
config = ../config/emacs/emacs.el;
|
||||
defaultInitFile = true;
|
||||
package = pkgs.emacs;
|
||||
alwaysEnsure = true;
|
||||
extraEmacsPackages =
|
||||
epkgs: with epkgs; [
|
||||
magit
|
||||
company
|
||||
nix-mode
|
||||
use-package
|
||||
];
|
||||
};
|
||||
in
|
||||
|
||||
{
|
||||
@@ -101,19 +114,7 @@ in
|
||||
with pkgs;
|
||||
[
|
||||
# Emacs with automatic package management from overlay
|
||||
(emacsWithPackagesFromUsePackage {
|
||||
config = ../config/emacs/emacs.el;
|
||||
defaultInitFile = true;
|
||||
package = emacs-git;
|
||||
alwaysEnsure = true;
|
||||
extraEmacsPackages =
|
||||
epkgs: with epkgs; [
|
||||
magit
|
||||
company
|
||||
nix-mode
|
||||
use-package
|
||||
];
|
||||
})
|
||||
configuredEmacs
|
||||
]
|
||||
++ (import ../../modules/darwin/packages.nix { inherit pkgs llm-agents; })
|
||||
|
||||
@@ -125,7 +126,7 @@ in
|
||||
ProgramArguments = [
|
||||
"/bin/sh"
|
||||
"-c"
|
||||
"/bin/wait4path ${pkgs.emacs}/bin/emacs && exec ${pkgs.emacs}/bin/emacs --fg-daemon"
|
||||
"/bin/wait4path ${configuredEmacs}/bin/emacs && exec ${configuredEmacs}/bin/emacs --fg-daemon"
|
||||
];
|
||||
StandardErrorPath = "/tmp/emacs.err.log";
|
||||
StandardOutPath = "/tmp/emacs.out.log";
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
|
||||
## Layout
|
||||
```
|
||||
|
||||
.
|
||||
├── dock # MacOS dock configuration
|
||||
├── casks.nix # List of homebrew casks
|
||||
@@ -9,3 +10,16 @@
|
||||
├── home-manager.nix # Defines user programs
|
||||
├── packages.nix # List of packages to install for MacOS
|
||||
```
|
||||
|
||||
## Dock activation
|
||||
|
||||
Dock setup runs only when `olaf` is the active console user. Each `dockutil`
|
||||
command runs as that user in their GUI session, avoiding the root-mode
|
||||
`defaults export` pipe deadlock in dockutil 3.1.3. Commands have a 30-second
|
||||
timeout (with a forced stop after another 5 seconds) and report failures.
|
||||
A failed Dock listing aborts activation before resetting any entries.
|
||||
The Dock is restarted through its user launchd service.
|
||||
|
||||
If setup is skipped because no matching desktop session is active, run
|
||||
`sudo darwin-rebuild switch --flake .#aarch64-darwin` again after logging in
|
||||
(use `x86_64-darwin` on Intel).
|
||||
@@ -14,6 +14,7 @@ _:
|
||||
"inkscape"
|
||||
"vcv-rack"
|
||||
"affinity"
|
||||
|
||||
|
||||
# Communication Tools
|
||||
"adium"
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
emacsOverlaySha256 = "1abfqnjs3ysmg8k41hwncwzphkcw9884sskmfp2kj24cd9j7kpsz";
|
||||
in
|
||||
{ config, pkgs, emacs-overlay, ... }:
|
||||
{
|
||||
home-manager.backupFileExtension = "nix-backup";
|
||||
nixpkgs = {
|
||||
@@ -23,10 +19,6 @@ in
|
||||
pathExists (path + ("/" + n + "/default.nix")))
|
||||
(attrNames (readDir path)))
|
||||
|
||||
++ [(import (builtins.fetchTarball {
|
||||
url = "https://github.com/nix-community/emacs-overlay/archive/master.tar.gz";
|
||||
sha256 = emacsOverlaySha256;
|
||||
}))
|
||||
];
|
||||
++ [ emacs-overlay.overlays.default ];
|
||||
};
|
||||
}
|
||||
@@ -78,23 +78,49 @@ in
|
||||
wantURIs = concatMapStrings (entry: "${entryURI entry.path}\n") cfg.entries;
|
||||
createEntries = concatMapStrings (
|
||||
entry:
|
||||
"if [ -e '${entry.path}' ]; then ${dockutil}/bin/dockutil --no-restart --add '${entry.path}' --section ${entry.section} ${entry.options} /Users/${user} ; fi \n "
|
||||
''
|
||||
if [ -e ${escapeShellArg entry.path} ]; then
|
||||
runDockutil --no-restart --add ${escapeShellArg entry.path} --section ${escapeShellArg entry.section} ${entry.options} /Users/${user} || exit 1
|
||||
fi
|
||||
''
|
||||
) cfg.entries;
|
||||
in
|
||||
{
|
||||
system.activationScripts.postActivation.text = ''
|
||||
echo >&2 "Setting up the Dock for ${user}..."
|
||||
haveURIs="$(${dockutil}/bin/dockutil --list /Users/${user} | ${pkgs.coreutils}/bin/cut -f2)"
|
||||
|
||||
if ! diff -wu <(echo "$haveURIs") <(echo -n '${wantURIs}') >&2 ; then
|
||||
{
|
||||
echo >&2 "Resetting Dock."
|
||||
${dockutil}/bin/dockutil --no-restart --remove all /Users/${user}
|
||||
${createEntries}
|
||||
killall Dock
|
||||
if [ "$(/usr/bin/stat -f %Su /dev/console)" = ${escapeShellArg user} ]; then
|
||||
dockUid="$(/usr/bin/id -u ${escapeShellArg user})"
|
||||
runDockutil() {
|
||||
# Avoid dockutil's root-only defaults-export pipe deadlock.
|
||||
local status
|
||||
if ${pkgs.coreutils}/bin/timeout --kill-after=5s 30s \
|
||||
/bin/launchctl asuser "$dockUid" \
|
||||
/usr/bin/sudo -H -n -u ${escapeShellArg user} \
|
||||
${dockutil}/bin/dockutil "$@"; then
|
||||
return 0
|
||||
else
|
||||
status=$?
|
||||
echo >&2 "Dock setup failed: dockutil $* exited with status $status (timeout: 30s)."
|
||||
return "$status"
|
||||
fi
|
||||
}
|
||||
else
|
||||
|
||||
dockListing="$(runDockutil --list /Users/${user})" || exit 1
|
||||
haveURIs="$(printf '%s\n' "$dockListing" | ${pkgs.coreutils}/bin/cut -f2)"
|
||||
|
||||
if ! diff -wu <(echo "$haveURIs") <(echo -n ${escapeShellArg wantURIs}) >&2; then
|
||||
echo >&2 "Resetting Dock."
|
||||
runDockutil --no-restart --remove all /Users/${user} || exit 1
|
||||
${createEntries}
|
||||
if ! ${pkgs.coreutils}/bin/timeout --kill-after=5s 30s \
|
||||
/bin/launchctl kickstart -k "gui/$dockUid/com.apple.Dock.agent"; then
|
||||
echo >&2 "Dock setup failed: could not restart the Dock for ${user}."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
echo >&2 "Dock setup complete."
|
||||
else
|
||||
echo >&2 "Skipping Dock setup: ${user} is not the active console user. Re-run activation after logging in."
|
||||
fi
|
||||
'';
|
||||
}
|
||||
|
||||
@@ -9,11 +9,32 @@ let
|
||||
xdg_configHome = "${config.users.users.${user}.home}/.config";
|
||||
xdg_dataHome = "${config.users.users.${user}.home}/.local/share";
|
||||
xdg_stateHome = "${config.users.users.${user}.home}/.local/state";
|
||||
inkscapeExtensionsHome = "${config.users.users.${user}.home}/Library/Application Support/org.inkscape.Inkscape/config/inkscape/extensions";
|
||||
hatchFillSource = pkgs.fetchzip {
|
||||
url = "https://gitlab.com/moini_ink/hatch_fill/-/archive/master/hatch_fill-master.tar.gz";
|
||||
sha256 = "1m3qhvf158dngg7shwd33xhn3bawn9yxw2srv2k8qjn889wjvi82";
|
||||
};
|
||||
in
|
||||
{
|
||||
|
||||
# Shared file definitions moved into the Darwin module set.
|
||||
|
||||
"${config.users.users.${user}.home}/.gnupg/common.conf" = {
|
||||
text = ''
|
||||
# keyboxd configuration collides with gpg keymanager.app
|
||||
# use-keyboxd
|
||||
'';
|
||||
};
|
||||
|
||||
"${config.users.users.${user}.home}/.ssh/authorized_keys" = {
|
||||
text = ''
|
||||
sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAILVdAx+U1xhcJmh1hRaF0CVB0ivIF/U0oIbAWYPwko4iAAAABHNzaDo= Yubikey 35775013
|
||||
sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIIjnJyJUDnia6ZWPRa5iSBKCb+DMGmFtiFa+9gkeiTwQAAAABHNzaDo= Yubikey 36431751
|
||||
sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIFhuPQUHUHchx8wHVCciMi6etzZStkpECbG/r/1imy+kAAAABHNzaDo= Yubikey 36431881
|
||||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILCEBZrQ9F3nLhEM9uqdPijut11vhYkdmLtj7gT/zgV3 Key Nov 2024
|
||||
'';
|
||||
};
|
||||
|
||||
# Raycast script so that "Run Emacs" is available and uses Emacs daemon
|
||||
"${xdg_dataHome}/bin/emacsclient" = {
|
||||
executable = true;
|
||||
@@ -39,4 +60,7 @@ in
|
||||
fi
|
||||
'';
|
||||
};
|
||||
|
||||
"${inkscapeExtensionsHome}/hatch_fill.inx".source = "${hatchFillSource}/hatch_fill.inx";
|
||||
"${inkscapeExtensionsHome}/hatch_fill.py".source = "${hatchFillSource}/hatch_fill.py";
|
||||
}
|
||||
@@ -62,13 +62,12 @@ in
|
||||
"Affinity Publisher 2" = 1606941598;
|
||||
# "DaisyDisk" = 409907375; # (4.32) # Don't use this, we need the official version that is not sandboxed
|
||||
"Fantastical - Calendar" = 975937182;
|
||||
"Fedistar" = 6445863996; # (1.13.1)
|
||||
"Fedistar" = 6445863996; # (1.13.1)
|
||||
"Home Assistant" = 1099568401; # (2025.7.1)
|
||||
"Ice Cubes for Mastodon" = 6444915884; # (1.11.3)
|
||||
"LibreOffice" = 1630474372;
|
||||
#"LibreOffice" = 1630474372;
|
||||
"Monal - XMPP Chatting " = 1637078500;
|
||||
"MQTT Explorer" = 1455214828; # (0.3.5)
|
||||
"Night Sky" = 475772902; # 475772902
|
||||
"Native SQLite Manager" = 1416282836; # (1.31.0)
|
||||
"Remarkable Desktop" = 1276493162; # (3.19.0)
|
||||
"Slack for Desktop" = 803453959; # (4.45.60)
|
||||
@@ -76,6 +75,9 @@ in
|
||||
"Windows App Installer" = 1295203466; # (1.0.16)
|
||||
"Wireguard" = 1451685025; # (1.0.16)
|
||||
### "1Password: Password Manager" = 1511601750; # (8.11.0) Does not seem to insta
|
||||
}
|
||||
// lib.optionalAttrs (system != "x86_64-darwin") {
|
||||
"Night Sky" = 475772902; # 475772902
|
||||
};
|
||||
};
|
||||
|
||||
@@ -116,8 +118,19 @@ in
|
||||
style = "Block";
|
||||
};
|
||||
|
||||
env = {
|
||||
TERM = "xterm-256color";
|
||||
};
|
||||
|
||||
window = {
|
||||
opacity = 1.0;
|
||||
dynamic_padding = true;
|
||||
decorations = "full";
|
||||
title = "Terminal";
|
||||
class = {
|
||||
instance = "Alacritty";
|
||||
general = "Alacritty";
|
||||
};
|
||||
padding = {
|
||||
x = 24;
|
||||
y = 24;
|
||||
@@ -129,18 +142,7 @@ in
|
||||
family = "MesloLGS NF";
|
||||
style = "Regular";
|
||||
};
|
||||
size = lib.mkMerge [
|
||||
(lib.mkIf pkgs.stdenv.hostPlatform.isLinux 10)
|
||||
(lib.mkIf pkgs.stdenv.hostPlatform.isDarwin 14)
|
||||
];
|
||||
};
|
||||
|
||||
dynamic_padding = true;
|
||||
decorations = "full";
|
||||
title = "Terminal";
|
||||
class = {
|
||||
instance = "Alacritty";
|
||||
general = "Alacritty";
|
||||
size = 14;
|
||||
};
|
||||
|
||||
colors = {
|
||||
@@ -190,6 +192,9 @@ in
|
||||
controlMaster = "no";
|
||||
controlPath = "~/.ssh/master-%r@%n:%p";
|
||||
controlPersist = "no";
|
||||
preferredAuthentications = "publickey";
|
||||
identityAgent = "~/.gnupg/S.gpg-agent.ssh";
|
||||
identityFile = "none";
|
||||
};
|
||||
"moonunit.kolkman.org" = {
|
||||
hostname = "moonunit.kolkman.org";
|
||||
@@ -202,10 +207,7 @@ in
|
||||
"vps3.evangineer.net".forwardAgent = true;
|
||||
"vps2.evangineer.net".forwardAgent = true;
|
||||
};
|
||||
includes = [
|
||||
(lib.mkIf pkgs.stdenv.hostPlatform.isLinux "/home/${user}/.ssh/config_external")
|
||||
(lib.mkIf pkgs.stdenv.hostPlatform.isDarwin "/Users/${user}/.ssh/config_external")
|
||||
];
|
||||
includes = [ "/Users/${user}/.ssh/config_external" ];
|
||||
};
|
||||
|
||||
gpg = {
|
||||
@@ -229,19 +231,19 @@ in
|
||||
};
|
||||
initContent =
|
||||
let
|
||||
zshConfigBefore = lib.mkBefore ''
|
||||
if [[ "$TERM" == "alacritty" ]] && ! infocmp alacritty >/dev/null 2>&1; then
|
||||
export TERM="xterm-256color"
|
||||
fi
|
||||
export TERMINFO_DIRS="$HOME/.nix-profile/share/terminfo:/run/current-system/sw/share/terminfo:/nix/var/nix/profiles/default/share/terminfo:/usr/share/terminfo"
|
||||
'';
|
||||
|
||||
zshConfigEarlyInit = lib.mkOrder 500 ''
|
||||
if [[ -f /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh ]]; then
|
||||
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
|
||||
. /nix/var/nix/profiles/default/etc/profile.d/nix.sh
|
||||
fi
|
||||
|
||||
if [[ "$TERM" == "alacritty" ]]; then
|
||||
export TERMINFO_DIRS="$HOME/.nix-profile/share/terminfo:/run/current-system/sw/share/terminfo:/nix/var/nix/profiles/default/share/terminfo:/usr/share/terminfo"
|
||||
if ! infocmp alacritty >/dev/null 2>&1; then
|
||||
export TERM="xterm-256color"
|
||||
fi
|
||||
fi
|
||||
|
||||
# GPGAgent for SSH
|
||||
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
||||
|
||||
@@ -283,6 +285,7 @@ in
|
||||
'';
|
||||
in
|
||||
lib.mkMerge [
|
||||
zshConfigBefore
|
||||
zshConfigEarlyInit
|
||||
zshConfigLastInit
|
||||
];
|
||||
@@ -318,6 +321,9 @@ in
|
||||
|
||||
vim = {
|
||||
enable = true;
|
||||
packageConfigurable = pkgs.vim-full.override {
|
||||
guiSupport = null;
|
||||
};
|
||||
plugins = with pkgs.vimPlugins; [
|
||||
vim-airline
|
||||
vim-airline-themes
|
||||
@@ -579,10 +585,12 @@ in
|
||||
{ path = "/Applications/Visual Studio Code.app/"; }
|
||||
{ path = "/Applications/Home Assistant.app/"; }
|
||||
{ path = "/Applications/reMarkable.app/"; }
|
||||
{ path = "/Applications/LibreOffice.app/"; }
|
||||
{ path = "/run/current-system/Applications/LibreOffice.app/"; }
|
||||
{ path = "/Applications/Microsoft Word.app/"; }
|
||||
{ path = "/Applications/Microsoft PowerPoint.app/"; }
|
||||
{ path = "/Applications/Microsoft Teams.app/"; }
|
||||
{ path = "/Applications/Microsoft Outlook.app/"; }
|
||||
{ path = "/Applications/Copilot.app/"; }
|
||||
{ path = "/Applications/Affinity.app/"; }
|
||||
{ path = "/Applications/Monal.app/"; }
|
||||
{ path = "/System/Applications/Utilities/Screen Sharing.app/"; }
|
||||
|
||||
@@ -35,7 +35,9 @@ with pkgs;
|
||||
killall
|
||||
minicom
|
||||
mtr
|
||||
ncurses
|
||||
ncdu
|
||||
nixos-anywhere
|
||||
nodejs
|
||||
|
||||
fastfetch
|
||||
@@ -86,6 +88,7 @@ with pkgs;
|
||||
hunspell
|
||||
iftop
|
||||
inetutils # includes Telnet
|
||||
libreoffice-bin
|
||||
ripgrep
|
||||
tmux
|
||||
tree
|
||||
@@ -96,7 +99,9 @@ with pkgs;
|
||||
uv
|
||||
|
||||
(python3.withPackages (
|
||||
python-pkgs: with python-pkgs; [
|
||||
python-pkgs:
|
||||
with python-pkgs;
|
||||
[
|
||||
bidict
|
||||
blinker
|
||||
certifi
|
||||
@@ -106,6 +111,7 @@ with pkgs;
|
||||
flask-socketio
|
||||
h11
|
||||
idna
|
||||
intelhex
|
||||
importlib-metadata
|
||||
itsdangerous
|
||||
jinja2
|
||||
@@ -129,13 +135,16 @@ with pkgs;
|
||||
++ lib.optionals pkgs.stdenv.hostPlatform.isAarch64 [
|
||||
mlx-lm
|
||||
]
|
||||
++ lib.optionals (pkgs.python3.pythonVersion == pkgs.python313.pythonVersion) (
|
||||
pkgs.vsketchPythonPackages python-pkgs
|
||||
)
|
||||
))
|
||||
|
||||
# LLM
|
||||
ollama # Launchd definition in hosts/darwin/default.nix
|
||||
|
||||
# Social
|
||||
pidgin
|
||||
# pidgin # removed relies on gtk2
|
||||
|
||||
# Rust Related
|
||||
rustc
|
||||
@@ -150,8 +159,8 @@ with pkgs;
|
||||
xml2rfc
|
||||
zotero
|
||||
|
||||
(texlive.combine {
|
||||
inherit (texlive)
|
||||
(texliveSmall.withPackages (
|
||||
texlivePackages: with texlivePackages; [
|
||||
apa6
|
||||
apa7
|
||||
apacite
|
||||
@@ -200,8 +209,11 @@ with pkgs;
|
||||
xecjk
|
||||
xifthen
|
||||
xurl
|
||||
;
|
||||
})
|
||||
]
|
||||
))
|
||||
|
||||
dockutil
|
||||
]
|
||||
++ lib.optionals (python3.pythonVersion != python313.pythonVersion) [
|
||||
vsketch-python
|
||||
]
|
||||
@@ -24,7 +24,7 @@ self: super: with super; {
|
||||
description = "Set of font icons from the open source collection Feather Icons";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.dlyons ];
|
||||
platforms = [ platforms.x86_64-linux platforms.x86_64-darwin ];
|
||||
platforms = [ platforms.x86_64-darwin ];
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
# To test if a new Zotero package works without the overlay try
|
||||
# nix --extra-experimental-features 'nix-command flakes' eval --raw --impure --expr '
|
||||
# let
|
||||
# flake = builtins.getFlake (toString ./.);
|
||||
# pkgs = import flake.inputs.nixpkgsAarch64 {
|
||||
# system = "aarch64-darwin";
|
||||
# config.allowUnfree = true;
|
||||
# };
|
||||
# in
|
||||
# pkgs.zotero.version
|
||||
# '
|
||||
|
||||
final: prev:
|
||||
|
||||
let
|
||||
pinnedPkgs = import (builtins.fetchTarball {
|
||||
# Last nixpkgs Zotero package revision before 10.0.2.
|
||||
url = "https://github.com/NixOS/nixpkgs/archive/4118d63e017feb54b48e7341e4b6f0ac5348f074.tar.gz";
|
||||
sha256 = "1w33226pjk7hs9hbzy0ghcvgps0yicm0r2zxnnrzsr26pzvjjm6z";
|
||||
}) {
|
||||
system = prev.stdenv.hostPlatform.system;
|
||||
config = prev.config;
|
||||
};
|
||||
in
|
||||
{
|
||||
zotero = pinnedPkgs.zotero;
|
||||
}
|
||||
@@ -0,0 +1,187 @@
|
||||
final: prev:
|
||||
|
||||
{
|
||||
pythonPackagesExtensions = prev.pythonPackagesExtensions ++ [
|
||||
(
|
||||
python-final: python-prev:
|
||||
let
|
||||
pyphenForVpype = python-prev.pyphen.overridePythonAttrs (old: {
|
||||
version = "0.15.0";
|
||||
src = final.fetchPypi {
|
||||
pname = "pyphen";
|
||||
version = "0.15.0";
|
||||
hash = "sha256-pDBiPeysU9w2kSQSUyY8uja53XpE/9JoC3Bq82jNovI=";
|
||||
};
|
||||
});
|
||||
in
|
||||
{
|
||||
pnoise = python-final.buildPythonPackage rec {
|
||||
pname = "pnoise";
|
||||
version = "0.2.0";
|
||||
pyproject = true;
|
||||
|
||||
src = final.fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-djgzENYCvMftI1XNM0+OvFuI5x1b/f7jLRuT05gZcs8=";
|
||||
};
|
||||
|
||||
build-system = with python-final; [
|
||||
setuptools
|
||||
wheel
|
||||
];
|
||||
dependencies = [ python-final.numpy ];
|
||||
pythonImportsCheck = [ "pnoise" ];
|
||||
|
||||
meta = {
|
||||
description = "Perlin noise for Python";
|
||||
homepage = "https://github.com/plottertools/pnoise";
|
||||
license = final.lib.licenses.lgpl21;
|
||||
};
|
||||
};
|
||||
|
||||
vpype = python-final.buildPythonPackage rec {
|
||||
pname = "vpype";
|
||||
version = "1.15.0";
|
||||
pyproject = true;
|
||||
disabled = python-final.pythonOlder "3.11" || python-final.pythonAtLeast "3.14";
|
||||
|
||||
src = final.fetchFromGitHub {
|
||||
owner = "abey79";
|
||||
repo = "vpype";
|
||||
rev = version;
|
||||
hash = "sha256-DIW+4eJuwRsboCbQ/wtqWfXYCR5CqQuAG5jBz992eg8=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ final.qt6.wrapQtAppsHook ];
|
||||
buildInputs = [ final.qt6.qtbase ];
|
||||
build-system = [ python-final.poetry-core ];
|
||||
dependencies =
|
||||
with python-final;
|
||||
[
|
||||
asteval
|
||||
cachetools
|
||||
click
|
||||
glcontext
|
||||
matplotlib
|
||||
moderngl
|
||||
multiprocess
|
||||
numpy
|
||||
pillow
|
||||
pnoise
|
||||
pyside6
|
||||
scipy
|
||||
shapely
|
||||
svgelements
|
||||
svgwrite
|
||||
tomli
|
||||
]
|
||||
++ [ pyphenForVpype ];
|
||||
|
||||
nativeCheckInputs = [ python-final.pytestCheckHook ];
|
||||
pytestFlags = [
|
||||
"-o"
|
||||
"addopts="
|
||||
];
|
||||
enabledTestPaths = [
|
||||
"tests/test_geometry.py"
|
||||
"tests/test_text.py::test_text_unknown_font"
|
||||
"tests/test_text.py::test_text_unknown_align"
|
||||
"tests/test_text.py::test_text_unicode_ok"
|
||||
];
|
||||
pythonImportsCheck = [
|
||||
"vpype"
|
||||
"vpype_cli"
|
||||
"vpype_viewer"
|
||||
];
|
||||
|
||||
dontWrapQtApps = true;
|
||||
preFixup = ''
|
||||
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Vector graphics toolbox for pen plotters";
|
||||
homepage = "https://github.com/abey79/vpype";
|
||||
license = final.lib.licenses.mit;
|
||||
mainProgram = "vpype";
|
||||
};
|
||||
};
|
||||
|
||||
vsketch = python-final.buildPythonPackage rec {
|
||||
pname = "vsketch";
|
||||
version = "1.2.0";
|
||||
pyproject = true;
|
||||
disabled = python-final.pythonOlder "3.11" || python-final.pythonAtLeast "3.14";
|
||||
|
||||
src = final.fetchFromGitHub {
|
||||
owner = "abey79";
|
||||
repo = "vsketch";
|
||||
rev = version;
|
||||
hash = "sha256-zdBclolZNrpUR4x6A/XkOe7mXEQrE/O56PffzHzPeRM=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ final.qt6.wrapQtAppsHook ];
|
||||
buildInputs = [ final.qt6.qtbase ];
|
||||
build-system = [ python-final.poetry-core ];
|
||||
dependencies = with python-final; [
|
||||
cookiecutter
|
||||
matplotlib
|
||||
multiprocess
|
||||
numpy
|
||||
pnoise
|
||||
pyside6
|
||||
shapely
|
||||
vpype
|
||||
watchfiles
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ python-final.pytestCheckHook ];
|
||||
enabledTestPaths = [
|
||||
"tests/test_line.py"
|
||||
"tests/test_param.py"
|
||||
"tests/test_random.py"
|
||||
"tests/test_save.py"
|
||||
"tests/test_sketch.py"
|
||||
];
|
||||
pythonImportsCheck = [
|
||||
"vsketch"
|
||||
"vsketch_cli.cli"
|
||||
];
|
||||
|
||||
dontWrapQtApps = true;
|
||||
preFixup = ''
|
||||
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Python generative art toolkit for plotters";
|
||||
homepage = "https://github.com/abey79/vsketch";
|
||||
license = final.lib.licenses.mit;
|
||||
mainProgram = "vsk";
|
||||
};
|
||||
};
|
||||
}
|
||||
)
|
||||
];
|
||||
|
||||
vsketchPythonPackages =
|
||||
python-pkgs: with python-pkgs; [
|
||||
vsketch
|
||||
];
|
||||
|
||||
vsketch-python =
|
||||
let
|
||||
env = final.python313.withPackages final.vsketchPythonPackages;
|
||||
in
|
||||
final.runCommand "vsketch-python-${final.python313.version}" { } ''
|
||||
mkdir -p "$out/bin"
|
||||
for executable in python3.13 vsk vpype; do
|
||||
source="${env}/bin/$executable"
|
||||
if [ ! -x "$source" ]; then
|
||||
echo "Missing vsketch executable: $source" >&2
|
||||
exit 1
|
||||
fi
|
||||
ln -s "$source" "$out/bin/$executable"
|
||||
done
|
||||
'';
|
||||
}
|
||||
@@ -4,3 +4,7 @@ Files in this directory run automatically as part of each build. Some common way
|
||||
* Applying patches
|
||||
* Downloading different versions of files (locking to a version or trying a fork)
|
||||
* Workarounds and stuff I need to run temporarily
|
||||
|
||||
Add new overlay files to Git before building (`git add overlays/<name>.nix`).
|
||||
Git-backed flakes omit untracked files even though they exist locally; a
|
||||
commit is not required.
|
||||
Reference in new issue
Block a user