Compare commits
6
Commits
a13fbca07b
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2c387a29bd | ||
|
|
3209dbc405 | ||
|
|
830971c108 | ||
|
|
a06d15ccd3 | ||
|
|
5e24c62d7b | ||
|
|
ca6ddc4b48 |
No files matched your search
@@ -2,7 +2,6 @@ README.md~
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
result
|
result
|
||||||
dump.txt
|
dump.txt
|
||||||
flake.lock
|
|
||||||
*~
|
*~
|
||||||
Platformio - NixOS Wiki*
|
Platformio - NixOS Wiki*
|
||||||
.platformio/
|
.platformio/
|
||||||
@@ -7,3 +7,41 @@ 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
|
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.
|
Refactored the configuration to remove nixos but keep the shared modules and Darwin host setup, with no NixOS trees or Linux app targets.
|
||||||
|
|
||||||
|
## Inkscape extensions
|
||||||
|
|
||||||
|
Home Manager installs Hatch Fill and the pinned ASK Pen Plotter G-code export
|
||||||
|
extension. The latter defaults to pen up `G21 G90 G53 G0 Z2`, pen down
|
||||||
|
`G21 G90 G53 G0 Z0`, and travel speed `2000` mm/min. Inkscape may retain
|
||||||
|
previously used extension settings, so check these values before plotting.
|
||||||
|
|
||||||
|
Before applying the configuration, move any existing unmanaged
|
||||||
|
`penplotter_gcode.inx` and `penplotter_gcode.py` files out of Inkscape's user
|
||||||
|
extensions folder to avoid Home Manager file conflicts. Restart Inkscape after
|
||||||
|
applying; the extension is under **Extensions > ASK Pen Plotter > Export Gcode**.
|
||||||
|
|
||||||
|
## 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.
|
||||||
Generated
+533
@@ -0,0 +1,533 @@
|
|||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"brew-src": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1795001018,
|
||||||
|
"narHash": "sha256-W+w1bHDUN/eXJqTm9sDe85G/VPuTebL5AxuOk7hQe8M=",
|
||||||
|
"owner": "Homebrew",
|
||||||
|
"repo": "brew",
|
||||||
|
"rev": "2595f4b142e7554924bbce5697f47cdc3f2f2ce5",
|
||||||
|
"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": 1794788055,
|
||||||
|
"narHash": "sha256-ne61lharrApQ3QVpm6sjd6k5AgD0xandc69h4QbopIY=",
|
||||||
|
"owner": "catppuccin",
|
||||||
|
"repo": "nix",
|
||||||
|
"rev": "aa70e775fdb4e998314dd64fb4cf66aeaa87f6dd",
|
||||||
|
"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": 1794983981,
|
||||||
|
"narHash": "sha256-DA/V0QZSinJ5Tbzx4cajBPjhfWhH/lwPXQ+j9HWoxR4=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "emacs-overlay",
|
||||||
|
"rev": "f2fb15514bcc68a8d6ab898a7feec5098c1b33df",
|
||||||
|
"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": 1794963576,
|
||||||
|
"narHash": "sha256-+CPrP74GDJ63f7bgEFC9Av4hbxc7K9WUNv1ZVRifRe8=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"rev": "2b13c9cb3aa20653e6f8ee0b7f8331a53ea9b0a9",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"homeManagerX86": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgsX86"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1794943722,
|
||||||
|
"narHash": "sha256-Qkh6uNyMsic61gfyOO8VXnC+HEBdti6Xe2kKiMf66O0=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"rev": "5643e73425b85ac359ba2aaf83deae8ce1cd7968",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"ref": "release-26.05",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"homebrew-cask": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1795006294,
|
||||||
|
"narHash": "sha256-+5YNXDMO4r+kC9+b4bKGpUhM5D4bHClt3eYeUeAtBn0=",
|
||||||
|
"owner": "homebrew",
|
||||||
|
"repo": "homebrew-cask",
|
||||||
|
"rev": "8142eae0819e6243e180c92e388ab7bce780e19e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "homebrew",
|
||||||
|
"repo": "homebrew-cask",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"homebrew-core": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1795006899,
|
||||||
|
"narHash": "sha256-R9eF4VwnVkKK7zC0Fa2a+9vNM+MSMLUPM8bYyvtsuiQ=",
|
||||||
|
"owner": "homebrew",
|
||||||
|
"repo": "homebrew-core",
|
||||||
|
"rev": "ba402b70bd81dda7ce3592d92c1973fc344ca7a0",
|
||||||
|
"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": 1795007055,
|
||||||
|
"narHash": "sha256-mDYYfircX3pZToACxJA/9EM+PXYCWVXfoNk49HVrPFU=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "llm-agents.nix",
|
||||||
|
"rev": "72ec0e797a2a54aa3d7c8f9094b10dcaf0c7b628",
|
||||||
|
"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": 1794984540,
|
||||||
|
"narHash": "sha256-gnXOx6XcXWygmfD9aEvHBoyvGToyPnoCdx/Mk1Irb4E=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nix-vscode-extensions",
|
||||||
|
"rev": "a70f941d77bcad4edcd831ee5684235ff1fe7242",
|
||||||
|
"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": 1794495034,
|
||||||
|
"narHash": "sha256-QG/HY0t5t3sfT2ozW/Ikis5Klqf0X4nfTuLvFaBpNno=",
|
||||||
|
"rev": "2074cc672349f14240fb7ea90d509e0b643e9dd4",
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://releases.nixos.org/nixpkgs/nixpkgs-26.11pre1118975.2074cc672349/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": 1794840529,
|
||||||
|
"narHash": "sha256-ySrWnmZB5UsZTYGHHnBjllT05O5iFjElCRS+mabtfP0=",
|
||||||
|
"owner": "nixos",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "e21fec321d73511849707a7585e4ea155ee4bf40",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nixos",
|
||||||
|
"ref": "nixpkgs-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgsX86": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1794918815,
|
||||||
|
"narHash": "sha256-lsIUChCLfoCyf0VO6CzedtMZBV62+1W86nT3XGCIgiw=",
|
||||||
|
"owner": "nixos",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "94d362415787ffff528f73820996aeedd97ff0dd",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nixos",
|
||||||
|
"ref": "nixpkgs-26.05-darwin",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs_2": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1794495034,
|
||||||
|
"narHash": "sha256-E0hYoioqUtM2XmPPvYYpJgdADF5AW9oOoPSEiM9dTHQ=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "2074cc672349f14240fb7ea90d509e0b643e9dd4",
|
||||||
|
"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": 1794866654,
|
||||||
|
"narHash": "sha256-Y28AMB8lyKjASdJ0BVsR2AqR1cUsVuo8RVVpzHoECho=",
|
||||||
|
"owner": "Mic92",
|
||||||
|
"repo": "sops-nix",
|
||||||
|
"rev": "7c637afdccdf9bcf35c4a2d67b58a77c1fd843a4",
|
||||||
|
"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";
|
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 = {
|
homeManagerAarch64 = {
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgsAarch64";
|
inputs.nixpkgs.follows = "nixpkgsAarch64";
|
||||||
|
|||||||
+15
-14
@@ -7,6 +7,19 @@
|
|||||||
|
|
||||||
let
|
let
|
||||||
user = "olaf";
|
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
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -101,19 +114,7 @@ in
|
|||||||
with pkgs;
|
with pkgs;
|
||||||
[
|
[
|
||||||
# Emacs with automatic package management from overlay
|
# Emacs with automatic package management from overlay
|
||||||
(emacsWithPackagesFromUsePackage {
|
configuredEmacs
|
||||||
config = ../config/emacs/emacs.el;
|
|
||||||
defaultInitFile = true;
|
|
||||||
package = emacs-git;
|
|
||||||
alwaysEnsure = true;
|
|
||||||
extraEmacsPackages =
|
|
||||||
epkgs: with epkgs; [
|
|
||||||
magit
|
|
||||||
company
|
|
||||||
nix-mode
|
|
||||||
use-package
|
|
||||||
];
|
|
||||||
})
|
|
||||||
]
|
]
|
||||||
++ (import ../../modules/darwin/packages.nix { inherit pkgs llm-agents; })
|
++ (import ../../modules/darwin/packages.nix { inherit pkgs llm-agents; })
|
||||||
|
|
||||||
@@ -125,7 +126,7 @@ in
|
|||||||
ProgramArguments = [
|
ProgramArguments = [
|
||||||
"/bin/sh"
|
"/bin/sh"
|
||||||
"-c"
|
"-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";
|
StandardErrorPath = "/tmp/emacs.err.log";
|
||||||
StandardOutPath = "/tmp/emacs.out.log";
|
StandardOutPath = "/tmp/emacs.out.log";
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
## Layout
|
## Layout
|
||||||
```
|
```
|
||||||
|
|
||||||
.
|
.
|
||||||
├── dock # MacOS dock configuration
|
├── dock # MacOS dock configuration
|
||||||
├── casks.nix # List of homebrew casks
|
├── casks.nix # List of homebrew casks
|
||||||
@@ -9,3 +10,23 @@
|
|||||||
├── home-manager.nix # Defines user programs
|
├── home-manager.nix # Defines user programs
|
||||||
├── packages.nix # List of packages to install for MacOS
|
├── packages.nix # List of packages to install for MacOS
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Python
|
||||||
|
|
||||||
|
`python3.13` is available alongside the default Python environment, without
|
||||||
|
changing `python` or `python3` or their configured packages. When the default
|
||||||
|
Python already is 3.13, its existing command is used instead of an extra launcher.
|
||||||
|
Use `python3.13 -m venv .venv` to create a Python 3.13 virtual environment.
|
||||||
|
|
||||||
|
## 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).
|
||||||
@@ -19,6 +19,7 @@ _:
|
|||||||
# Communication Tools
|
# Communication Tools
|
||||||
"adium"
|
"adium"
|
||||||
"discord"
|
"discord"
|
||||||
|
"insta360-link-controller"
|
||||||
"signal"
|
"signal"
|
||||||
"webex"
|
"webex"
|
||||||
"whatsapp"
|
"whatsapp"
|
||||||
|
|||||||
@@ -1,8 +1,4 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, emacs-overlay, ... }:
|
||||||
|
|
||||||
let
|
|
||||||
emacsOverlaySha256 = "1kl9hid28adcnb1y6cfi63jqmhypa31iknnnz3sp6szhkf30j1az";
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
home-manager.backupFileExtension = "nix-backup";
|
home-manager.backupFileExtension = "nix-backup";
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
@@ -23,10 +19,6 @@ in
|
|||||||
pathExists (path + ("/" + n + "/default.nix")))
|
pathExists (path + ("/" + n + "/default.nix")))
|
||||||
(attrNames (readDir path)))
|
(attrNames (readDir path)))
|
||||||
|
|
||||||
++ [(import (builtins.fetchTarball {
|
++ [ emacs-overlay.overlays.default ];
|
||||||
url = "https://github.com/nix-community/emacs-overlay/archive/master.tar.gz";
|
|
||||||
sha256 = emacsOverlaySha256;
|
|
||||||
}))
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -78,23 +78,49 @@ in
|
|||||||
wantURIs = concatMapStrings (entry: "${entryURI entry.path}\n") cfg.entries;
|
wantURIs = concatMapStrings (entry: "${entryURI entry.path}\n") cfg.entries;
|
||||||
createEntries = concatMapStrings (
|
createEntries = concatMapStrings (
|
||||||
entry:
|
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;
|
) cfg.entries;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
system.activationScripts.postActivation.text = ''
|
system.activationScripts.postActivation.text = ''
|
||||||
echo >&2 "Setting up the Dock for ${user}..."
|
echo >&2 "Setting up the Dock for ${user}..."
|
||||||
haveURIs="$(${dockutil}/bin/dockutil --list /Users/${user} | ${pkgs.coreutils}/bin/cut -f2)"
|
if [ "$(/usr/bin/stat -f %Su /dev/console)" = ${escapeShellArg user} ]; then
|
||||||
|
dockUid="$(/usr/bin/id -u ${escapeShellArg user})"
|
||||||
if ! diff -wu <(echo "$haveURIs") <(echo -n '${wantURIs}') >&2 ; then
|
runDockutil() {
|
||||||
{
|
# Avoid dockutil's root-only defaults-export pipe deadlock.
|
||||||
echo >&2 "Resetting Dock."
|
local status
|
||||||
${dockutil}/bin/dockutil --no-restart --remove all /Users/${user}
|
if ${pkgs.coreutils}/bin/timeout --kill-after=5s 30s \
|
||||||
${createEntries}
|
/bin/launchctl asuser "$dockUid" \
|
||||||
killall Dock
|
/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."
|
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
|
fi
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,6 +14,17 @@ let
|
|||||||
url = "https://gitlab.com/moini_ink/hatch_fill/-/archive/master/hatch_fill-master.tar.gz";
|
url = "https://gitlab.com/moini_ink/hatch_fill/-/archive/master/hatch_fill-master.tar.gz";
|
||||||
sha256 = "1m3qhvf158dngg7shwd33xhn3bawn9yxw2srv2k8qjn889wjvi82";
|
sha256 = "1m3qhvf158dngg7shwd33xhn3bawn9yxw2srv2k8qjn889wjvi82";
|
||||||
};
|
};
|
||||||
|
penPlotterSource = pkgs.fetchzip {
|
||||||
|
url = "https://github.com/abdulshakoorkakar/Inkscape-ASK-Pen-Plotter-Gcode-Export/archive/b5f1476b4f4f1c5f4e818e066a05bfaf6d2b860d.tar.gz";
|
||||||
|
sha256 = "18ssw051qi5znkwrxx9y4mbjsq61whahmsk7f20mrqdr9ccbi5m6";
|
||||||
|
};
|
||||||
|
penPlotterInx = pkgs.runCommand "penplotter_gcode.inx" { } ''
|
||||||
|
cp ${penPlotterSource}/penplotter_gcode.inx "$out"
|
||||||
|
substituteInPlace "$out" \
|
||||||
|
--replace-fail 'gui-text="Pen up command:">M3 S0</param>' 'gui-text="Pen up command:">G21 G90 G53 G0 Z2</param>' \
|
||||||
|
--replace-fail 'gui-text="Pen down command:">M3 S180</param>' 'gui-text="Pen down command:">G21 G90 G53 G0 Z0</param>' \
|
||||||
|
--replace-fail 'gui-text="Travel speed, pen up (mm/min):">4000</param>' 'gui-text="Travel speed, pen up (mm/min):">2000</param>'
|
||||||
|
'';
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -63,4 +74,6 @@ in
|
|||||||
|
|
||||||
"${inkscapeExtensionsHome}/hatch_fill.inx".source = "${hatchFillSource}/hatch_fill.inx";
|
"${inkscapeExtensionsHome}/hatch_fill.inx".source = "${hatchFillSource}/hatch_fill.inx";
|
||||||
"${inkscapeExtensionsHome}/hatch_fill.py".source = "${hatchFillSource}/hatch_fill.py";
|
"${inkscapeExtensionsHome}/hatch_fill.py".source = "${hatchFillSource}/hatch_fill.py";
|
||||||
|
"${inkscapeExtensionsHome}/penplotter_gcode.inx".source = penPlotterInx;
|
||||||
|
"${inkscapeExtensionsHome}/penplotter_gcode.py".source = "${penPlotterSource}/penplotter_gcode.py";
|
||||||
}
|
}
|
||||||
@@ -321,6 +321,9 @@ in
|
|||||||
|
|
||||||
vim = {
|
vim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
packageConfigurable = pkgs.vim-full.override {
|
||||||
|
guiSupport = null;
|
||||||
|
};
|
||||||
plugins = with pkgs.vimPlugins; [
|
plugins = with pkgs.vimPlugins; [
|
||||||
vim-airline
|
vim-airline
|
||||||
vim-airline-themes
|
vim-airline-themes
|
||||||
@@ -564,6 +567,7 @@ in
|
|||||||
{ path = "${pkgs.alacritty}/Applications/Alacritty.app/"; }
|
{ path = "${pkgs.alacritty}/Applications/Alacritty.app/"; }
|
||||||
# { path = "/Applications/Spotify.app/"; }
|
# { path = "/Applications/Spotify.app/"; }
|
||||||
{ path = "/Applications/Qobuz.app/"; }
|
{ path = "/Applications/Qobuz.app/"; }
|
||||||
|
{ path = "/Applications/Insta360 Link Controller.app/"; }
|
||||||
{ path = "/System/Volumes/Preboot/Cryptexes/App/System/Applications/Safari.app/"; }
|
{ path = "/System/Volumes/Preboot/Cryptexes/App/System/Applications/Safari.app/"; }
|
||||||
{
|
{
|
||||||
path = "/Applications/Brave Browser.app/";
|
path = "/Applications/Brave Browser.app/";
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ with pkgs;
|
|||||||
mtr
|
mtr
|
||||||
ncurses
|
ncurses
|
||||||
ncdu
|
ncdu
|
||||||
|
nixos-anywhere
|
||||||
nodejs
|
nodejs
|
||||||
|
|
||||||
fastfetch
|
fastfetch
|
||||||
@@ -140,7 +141,7 @@ with pkgs;
|
|||||||
ollama # Launchd definition in hosts/darwin/default.nix
|
ollama # Launchd definition in hosts/darwin/default.nix
|
||||||
|
|
||||||
# Social
|
# Social
|
||||||
pidgin
|
# pidgin # removed relies on gtk2
|
||||||
|
|
||||||
# Rust Related
|
# Rust Related
|
||||||
rustc
|
rustc
|
||||||
@@ -210,3 +211,8 @@ with pkgs;
|
|||||||
|
|
||||||
dockutil
|
dockutil
|
||||||
]
|
]
|
||||||
|
++ lib.optionals (lib.versions.majorMinor python3.version != "3.13") [
|
||||||
|
(writeShellScriptBin "python3.13" ''
|
||||||
|
exec ${python313}/bin/python3.13 "$@"
|
||||||
|
'')
|
||||||
|
]
|
||||||
Reference in new issue
Block a user