about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorFilesLines
2020-01-31 Consolidate injected dependenciesWilliam Carroll1-6/+3
Move the three injected dependencies into one.
2020-01-31 Rename docker -> deployWilliam Carroll3-2/+1
I think the name deploy is more representative of the purpose of this directory since docker is just one of a few tools that I'm using to deploy software.
2020-01-31 Render pandoc output to index.htmlWilliam Carroll3-13/+17
Using index.html allows us to use the Google AdSense script and extend the styling by adding a CSS stylesheet.
2020-01-31 Rename dotfiles -> briefcaseWilliam Carroll20-59/+60
Renaming my mono-repo briefcase. I first introduced this commit in master, but it introduced a bug where one of two things would happen: 1. Emacs wouldn't start and would crash X. 2. Emacs would start but my keyboard wouldn't work. I learned some valuable debugging skills in the process. Here are some of them: When my keyboard was broken, I wanted to control my computer using my laptop. Thankfully this is possible by using `x2x`, which forward X events from the SSH client to the SSH host. ```shell > # I'm unsure if this is the *exact* command > ssh -X desktop x2x -west :0.0 ``` Git commit-local bisecting. I didn't need to do a `git bisect` because I knew which commit introduced the bug; it was HEAD, master. But -- as you can see from the size of this commit -- there are many changes involved. I wanted to binary search through the changes, so I did the following workflow using `magit`: - git reset --soft HEAD^ - git stash 1/2 of the files changed - re-run `nix-env -f ~/briefcase/emacs -i` - restart X session - If the problem persists, the bug exists in the non-stashed files. Repeat the process until you find the bug. In my case, the bug was pretty benign. Calling `(exwm/switch "Dotfiles")` at the bottom of `window-manager.el` was failing because "Dotfiles" is the name of a non-existent workspace; it should've been `(exwm/switch "Briefcase")`. There may have been more problems. I changed a few other things along the way, including exposing the env vars BRIEFCASE to `wpcarros-emacs` inside of `emacs/default.nix`. The important part is that this was a valuable learning opportunity, and I'm glad that I'm walking away from the two days of "lost productivity" feeling actually productive.
2020-01-31 Support script to audit, remove dotfile symlinksWilliam Carroll1-0/+88
Adding a simple script to help me manage the symlinks to the dotfiles managed by my mono-repo.
2020-01-31 Support building wpcarros-emacsWilliam Carroll3-2/+14
I'm using a Makefile until I can remember the command: ```shell > nix-env -f . -i ``` This will install (i.e. `-i`) any derivations instantiated from the Nix expression resolvable by `-f`. Ideally the incantation will look something like this: ```shell > nix-env -f '<universe>' -iA emacs ``` Informing `nix-env` to install all of the derivations created by the expression at attribute `emacs` in my `<universe>` repository. For now two things are preventing this: 1. `emacs` isn't an attribute in my top-level expression defined in the `default.nix`. 2. If I do add `emacs` as an attribute and call the above command, my usage of `readTree` results in `pkgs` missing `.lib` and a few other stdlib commands that are available in `(import <nixpkgs> {})`. A fix for both of these should be forthcoming.
2020-01-31 Point <nixpkgs> to ~/nixpkgsWilliam Carroll1-1/+1
At the moment, all of the Nix repositories that I'm consuming exist in ~. To keep things consistent, I ran: ```shell > hub clone nixos/nixpkgs ~/nixpkgs ```
2020-01-30 Move move .emacs.d out of configs/sharedWilliam Carroll190-302/+41
Moving all of my Emacs-related files into their own directory at the root of this repository.
2020-01-29 Remove unused filesWilliam Carroll2-22/+0
When I first moved to London, I created common.txt to store the address of my office, my temporary housing, my new phone number, and other information. It serverd its purpose, but I no longer need it anymore. bookmarks.txt started out as a dmenu/rofi -> google-chrome integration. This predates EXWM, which has replaced this with a google-chrome.el module (or something similarly named).
2020-01-29 Splice ./universe directory into ./William Carroll133-7979/+17
Manually merging: - README.md: I added the description from universe/README.md into the heading of dotfiles/README.md. - .envrc: dotfiles/.envrc was a superset of universe/.envrc - .gitignore: Adding some of the ignored patterns from universe/.gitignore to dotfiles/.gitignore Everything else here should be a simple rename.
2020-01-29 Add 'universe/' from commit '8ad51b24dd8719840aac47134835ea25cfe1b0b8'William Carroll131-0/+13792
git-subtree-dir: universe git-subtree-mainline: 15110e6de9f85537c7847267caa35fa068aea001 git-subtree-split: 8ad51b24dd8719840aac47134835ea25cfe1b0b8
2020-01-29 Drop support for ZSHWilliam Carroll7-1633/+5
I've been using Fish consistently for about a month now, and I don't see myself switching back to ZSH. Some of the code from this commit should be published. I may get around to that one day. Before I did that, I would need to clean it up and document it, which I won't be doing today. Thank you, ZSH, for your service.
2020-01-29 Support env vars for {DESK,LAP,CLOUD}TOP devicesWilliam Carroll7-38/+21
I recently changed my hostname for my desktop and laptop from wpcarro.lon.corp.google.com -> zeno.lon.corp.google.com wpcarro2 -> seneca If you're curious, the names Zeno and Seneca come from famous Stoic philosophers. As you can see from this commit, my configuration depends on the values of these hostnames. Immediately impacted: - .profile - device.el Not immediately impacted: - configs/install - configs/uninstall - .ssh/config - .zshrc* * As a side note, I should stop supporting ZSH. Using an .envrc file helps me DRY up some of my configuration. Ideally I should only need to make changes to the .envrc file and then expect everything to work as expected. Let's see how that goes.
2020-01-28 Document current deployment tacticsWilliam Carroll1-0/+59
Adding a README including my current method for deploying. See the README for more details. All of this is quite virgin and as such is subject to change.
2020-01-28 Package depot's gemma as a docker image for Cloud RunWilliam Carroll2-4/+34
Using <depot>'s gemma project with `dockerTools.buildLayeredImage` because I need access to a nix-packaged server and gemma is the first thing that comes to mind.
2020-01-28 Remove PAGER prefix from hgst abbreviationWilliam Carroll1-1/+1
1. This isn't correct fish syntax. 2. I'm not sure that I need this.
2020-01-28 Add docker/cloud_run.nixWilliam Carroll1-0/+9
I'm attempting to setup my blog using the following: - Google Cloud Run: I whitelist a docker image that packages my application and then Google runs it "statelessly" (i.e. without persistence). The stateless part should be fine for the time being. - Nix: Using `<nixpkgs>.dockerTools.buildLayeredImage` to output docker images from Nix expressions. - Docker: Upload the output image from the Nix expressions and upload it to Google Container Registry from which it can be run from Google Cloud Run. Some helpful commands: ```shell > sudo gcloud auth login > nix-build ./docker/cloud_run.nix > sudo docker image import ./result > sudo docker tag <name> gcr.io/<google-cloud-project-id>/<name>:<tag> > sudo docker push gcr.io/<google-cloud-project-id>/<name>:<tag> ``` I'm unsure if Google Cloud Run is my desired end goal, but it may help me publish a blog faster than setting up a Kubernetes cluster, which is what I'd ultimately like to do. Cloud Run should be cheaper financially and time-wise.
2020-01-27 Add missing dependencies to constants.elWilliam Carroll1-0/+11
Perhaps commits like these will become less frequent when I adopt Nix and a proper packaging strategy.
2020-01-27 Partially packages package that I partially want to useWilliam Carroll1-0/+26
A Poem: I wanted to try out this package... 30 minutes later after a dozen failed attempts at packaging it... I no longer want to try this package... for now.
2020-01-27 Rename mono -> universeWilliam Carroll4-6/+12
Update code that depends on my mono-repo being named "mono". I've renamed it to "universe", which explains the changes in this commit. TODO: Merge dotfiles into universe.
2020-01-27 Rename mono -> universeWilliam Carroll2-2/+2
Prefer the name universe for my mono-repo. A bit grandiose, sure, but I prefer the metaphor to no metaphor at all.
2020-01-27 Prefer home variable rather than hard coded path to readTreeWilliam Carroll1-1/+1
TIL: Nix support the ~ as a home variable, which makes my code more portable since it's shared between my work laptop and work desktop.
2020-01-27 Temporarily remove server-start from EmacsWilliam Carroll1-8/+0
I'm having trouble debugging why `pgrep emacs` returns two PIDs instead of just one. Additionally when I call `emacsclient .` on the command line, I see a message... "Waiting for Emacs..." ...but when I cycle through all of my workspaces, I don't see any active buffers. This commit is part of a larger debugging effort to get this working as expected.
2020-01-27 Sketch ideas for YNAB integrationWilliam Carroll1-0/+56
The end goal is to have some functions that help me manage my Monzo and YNAB accounts. YNAB (i.e. youneedabudget.com) doesn't support Monzo integrations. However, both services offer APIs. Here I'm sketching ideas for what the API integrations might look like. Coming soon: monzo.el.
2020-01-27 Add maybe.el dependency to fn in prelude.elWilliam Carroll1-0/+1
Not adding it as a top-level dependency since maybe.el depends on on prelude.el. This shouldn't be a circular dependency when the requirement happens in the function's scope though.
2020-01-27 Rename alarm.el -> egg-timer.elWilliam Carroll1-1/+2
Add path to `egg-timer.el` module for now until it's published on MELPA.
2020-01-27 Change Emacs startupWilliam Carroll2-3/+2
Remove `dbus-launch` and prefer simply `exec emacs`. Add `--no-site-file` and `--no-site-lisp` flags. Temporarily disable `google-stuff.el` because it's unavailable with the `--no-site-lisp` flag. This should all be fixed when I fully nixify my Emacs.
2020-01-27 Disable auto-fill-mode and company-mode in IRC buffersWilliam Carroll1-0/+3
Why? - `company-mode` is too noisy in IRC buffers. - `auto-fill-mode` inserts newline characters that end up each being their own message, which means that I make more noise than I should in IRC.
2020-01-27 Support nix-eval fish functionWilliam Carroll1-2/+8
Wrapping the `nix eval` incantation in a fish function for two reasons: 1. Document that this is how to evaluate Nix from a file. 2. Provide a more ergonomic way of evaluating Nix from a file.
2020-01-27 Enable ivy-mode globallyWilliam Carroll1-1/+1
This takes care of my outstanding TODO of understanding why something ivy was being used and other times it wasn't. It turns out that there is a generic `completing-read` function that many Emacs packages consume. `ivy-mode` ensures that when that function is called it is used instead of the default Emacs completing package. I'm still unsure of the difference between ivy and counsel. My best guess currently is that counsel is the narrowing framework and ivy is the integration of the narrowing framework with `completing-read`. Swiper must be the integration with incremental {forward,backward} search.
2020-01-27 Add missing require for ivy-clipmenuWilliam Carroll1-0/+1
Adding the missing dependency requirement for keybindings.el
2020-01-27 Delete alarm.elWilliam Carroll1-85/+0
Since I've exported alarm.el as egg-timer.el, prefer requiring the latter, which is in a separate repository.
2020-01-26 Add index.html with AdSense script to blogWilliam Carroll1-0/+16
Adds some dummy markup, which includes my Google AdSense `<script>` tag. The script won't work unless it is loaded from wpcarro.dev.
2020-01-25 Sketch idea of a buildClojure nix functionWilliam Carroll1-0/+11
The previous commit that adds Java code is part of a larger project intended to use Nix to package Clojure. I'd like to build something similar to @tazjin's buildLisp except for Clojure instead of for Common Lisp. Once building for both ecosystems is similarly easy, it will be easier for me to compare the two languages. Right now `buildLisp` is so good that it attracts me to Common Lisp even when I don't know the language.
2020-01-25 Support java directoryWilliam Carroll3-0/+12
Add an example of two java files, Main.java and Another.java, where Main.java depends on Another.java. This is part of a larger example of attempting to use Nix to package these. Also ignoring the *.class files that `javac <filename>` outputs.
2020-01-25 Prefer keynav daemonizeWilliam Carroll1-1/+1
Instead of `keynav &`.
2020-01-24 Add additional KBD for scrot/selectWilliam Carroll1-0/+4
As mentioned in the TODO, I need this redundant KBD for my Ergodox.
2020-01-24 Support alarm.elWilliam Carroll3-22/+86
- Renames productivity-timer.el -> alarm.el - Support functionality - Whitelists alarm.el in init.el
2020-01-24 Define pkill Emacs functionWilliam Carroll1-0/+6
I can kill process from Emacs instead of creating a terminal and using that.
2020-01-24 Start working on f.lispWilliam Carroll3-0/+68
I would like to port the `f.el` library to Common Lisp. I'm adding a README, some build files, and the module itself to get started.
2020-01-24 Cleanup lisp directoryWilliam Carroll2-29/+0
Removing the default.nix that I used to attempt to build prove, a Common Lisp unit testing library. Also removing the lisp module with the unit tests themselves.
2020-01-24 Support prelude.lispWilliam Carroll3-15/+22
Using this module to support utility functions that I have not classified further than being miscellaneous.
2020-01-24 Rename common-lisp directory to lispWilliam Carroll4-0/+1
I could have renamed common-lisp to common_lisp. I think Nix prefers underscores to hyphens.
2020-01-24 Prefer opening locate buffers using dired-find-file-other-windowWilliam Carroll1-1/+1
`dired-display-file` opens the file in another window but does not focus that window. `dired-find-file-other-window` does what `dired-display-file` does except it focuses that window.
2020-01-23 Support nix/sly-from-universeWilliam Carroll1-0/+44
This function builds a version of SBCL using `nix.buildLisp` and points `sly` to the built executable. The result is a REPL with access to your project's dependencies, which is quite useful. One drawback at the moment is that if new dependencies are added to the project, I think I need to rebuild SBCL using nix and restart sly.
2020-01-23 Add NIX_PATH to envrcWilliam Carroll1-0/+1
This way functions like `nix/sly-from-universe` can resolve nix paths like `<depot>` and `<universe>`.
2020-01-23 Support proof-of-concept blogWilliam Carroll3-10/+16
After some toil, I have a working proof-of-concept blog. The idea is simple: write blog posts in markdown and store the posts in the `./posts` directory. Then use the server and `pandoc` to convert these markdown files into HTML at request time. I'm using nix to package everything together. It's far from perfect, but it works at the moment, which is encouraging.
2020-01-23 Package cl-arrows packageWilliam Carroll1-0/+15
Using Nix to package this library of Clojure-inspired threading macros. TODO: Send this patch to tazjin.
2020-01-23 Extend blog server to consume nix injectionsWilliam Carroll1-1/+38
All of this is still a work-in-progress. Just checking in my work. Also: - Write function `render-post` to convert a markdown file into HTML. This is still a work-in-progress since we need to capture the output and not just have it printed to *standard-out*. - Return dummy data in /posts
2020-01-23 Attempt to inject dependencies into blog/serverWilliam Carroll1-1/+13
- We need the markdown files, to be in the /nix/store and the server needs to be aware of there location. - Since we're dependending on `pandoc`, our server needs to know about it too. For both of these cases -- especially for the latter case -- I imagine there may be a more idiomatic way of doing this.