Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b138b37378 | ||
|
|
a06d15ccd3 | ||
|
|
5e24c62d7b | ||
|
|
ca6ddc4b48 |
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
|
||||
```
|
||||
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
|
||||
}
|
||||
@@ -10,6 +10,12 @@
|
||||
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";
|
||||
|
||||
+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).
|
||||
@@ -1,8 +1,4 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
emacsOverlaySha256 = "1kl9hid28adcnb1y6cfi63jqmhypa31iknnnz3sp6szhkf30j1az";
|
||||
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
|
||||
'';
|
||||
}
|
||||
|
||||
@@ -321,6 +321,9 @@ in
|
||||
|
||||
vim = {
|
||||
enable = true;
|
||||
packageConfigurable = pkgs.vim-full.override {
|
||||
guiSupport = null;
|
||||
};
|
||||
plugins = with pkgs.vimPlugins; [
|
||||
vim-airline
|
||||
vim-airline-themes
|
||||
|
||||
@@ -37,6 +37,7 @@ with pkgs;
|
||||
mtr
|
||||
ncurses
|
||||
ncdu
|
||||
nixos-anywhere
|
||||
nodejs
|
||||
|
||||
fastfetch
|
||||
@@ -134,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
|
||||
@@ -210,3 +214,6 @@ with pkgs;
|
||||
|
||||
dockutil
|
||||
]
|
||||
++ lib.optionals (python3.pythonVersion != python313.pythonVersion) [
|
||||
vsketch-python
|
||||
]
|
||||
@@ -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