about summary refs log tree commit diff
path: root/nixos/socrates/configuration.nix
AgeCommit message (Collapse)AuthorFilesLines
2020-04-18 "Chord Drill Sergeant" -> "Learn Piano Chords"William Carroll1-1/+1
In the spirit of "keep it simple, stupid", I am naming this application as closely to the functionality as I can imagine.
2020-04-17 Nixify build for Chord Drill SergeantWilliam Carroll1-0/+5
Thankfully @tazjin builds Gemma (an Elm project) with Nix, so I could reference Gemma's default.nix to help me with mine. Elm problematically attempts to HTTP-fetch a list of packages to verify my project's dependencies. Because Nix builds derivations in a sandbox without network access, I need to use some escape hatches (i.e. NIX_REDIRECTS, LD_PRELOAD, SYSTEM_CERTIFICATE_PATH). Welp... it's packaged now... I'm also pointing learnpianochords.app to this project's index.html. It will be live soon! :) TODO(wpcarro): Rename "Chord Drill Sergeant" -> "Learn Piano Chords" (KISS)
2020-04-05 Change Gitea's rootUrlWilliam Carroll1-1/+6
This value defaults to localhost:3000, which works, but then Gitea renders "http://localhost:3000/wpcarro/briefcase" as the URL to clone my briefcase repository.
2020-04-05 Forward git.wpcarro.dev connections to :3000William Carroll1-0/+7
Gitea is running a web server on localhost:3000.
2020-04-05 Prefer gitea to gogsWilliam Carroll1-8/+1
Gitea's announcement notes explain some of the benefits of Gitea over Gogs: https://blog.gitea.io/2016/12/welcome-to-gitea/ Also, I never configured Gogs such that I could use it, so the cost of switching from Gogs to Gitea was basically zero.
2020-03-27 Drop support for lorriWilliam Carroll1-2/+0
Lorri does not cleanly integrate with my corporate device, which cannot run NixOS. To expose dependencies to Emacs buffers, I will use nix-buffer.el, which reads its values from dir-locals.nix. To easily expose dependencies from my existing shell.nix files into dir-locals.nix, I wrote a Nix utility function.
2020-03-20 Move sandbox into websiteWilliam Carroll1-1/+1
Nest the sandbox work under ./website.
2020-03-20 Move learn to website/learnWilliam Carroll1-1/+1
Nest the learn directory in the website directory.
2020-03-20 Move blog into website/blogWilliam Carroll1-1/+1
Nest the blog work within the website directory.
2020-03-20 Add sitemap to wpcarro.devWilliam Carroll1-3/+6
- Create ./website directory - Add a sitemap to wpcarro.dev - Move covid-uk directory to sandbox directory TODO: Next sandbox, blog, and learn in the website directory
2020-03-19 Attempt to serve sandbox.wpcarro.dev/covid-19William Carroll1-1/+3
Right now my website is serving at sandbox.wpcarro.dev, but I would rather people view it at sandbox.wpcarro.dev/covid-19. I previously tried to accomplish this with the following Nginx configuration: ```nix locations."/covid-19" = { root = briefcase.covid-uk; } ``` I am now trying `alias = ...` instead of `root = ...`. I got the idea from this SO question, https://stackoverflow.com/questions/10631933/nginx-static-file-serving-confusion-with-root-alias.
2020-03-19 Update COVID-19 webpageWilliam Carroll1-2/+2
- Prefer hosting on sandbox.wpcarro.dev; I would prefer to host it at sandbox.wpcarro.dev/covid-19, but I haven't figure out how to use Nginx to do serve locations like /covid-19 yet. - Splice the src directory: When I develop locally and index.html exists within ./src, I cannot access ./node_modules because ./node_modules is in a parent directory. I could fix this if I used a bundler like Parcel or Webpack, but I do not want to set that up at this time. - Introduce Tailwind for CSS. This complicates my build a bit as well. For now, I'm including output.css even though ideally I should not version-control this file. I haven't figured out how to `yarn install` and run commands like `npx tailwindcss build styles.css -o output.css` in a Nix derivation yet. Hopefully I will learn and refactor this. - Add some content about why I made this chart - Add some content about some of my covid-19 predictions - Add a footer to the webpage - Delete timeseries.json and prefer fetching the published data instead
2020-03-18 Remove git.wpcarro.dev entry fron Nginx configWilliam Carroll1-7/+0
This is not currently working and it is causing Nginx to enter a retry loop. I am removing it until I choose to focus on it.
2020-03-18 Create line chart of UK confirmed corona virus casesWilliam Carroll1-0/+5
I was having trouble tracking the growth of corona virus cases in the UK. Thankfully someone is publishing some daily COVID data as JSON. I downloaded that data manually and plotted it using the chart.js library as a programming exercise with Mimi. Now I'm attempting to deploy to https://wpcarro.dev/covid-uk. TODO(wpcarro): Prefer the live API data instead my soon-to-be-stale downloaded.
2020-03-16 Create derivation for learn.wpcarro.devWilliam Carroll1-3/+1
Creating a derivation to abstract over the build process for learn.wpcarro.dev.
2020-03-10 Attempt to support gogsWilliam Carroll1-0/+17
Gogs claims to be an easy-to-use Git server and web frontend written in golang. I'm eager to try it as an alternative to cgit.
2020-03-09 Nixify hugo deploymentWilliam Carroll1-1/+1
Create a derivation for building the static files of my blog.
2020-03-08 Replace ~ with /home/wpcarroWilliam Carroll1-1/+1
Nix runs the `rebuild` command as root, so ~ resolves to /root, which is not what I want.
2020-03-08 Use static directory path as root for learn.wpcarro.devWilliam Carroll1-1/+3
With this simple change, Nix should copy the static directory and all of its contents to /nix/store and return the path to that directory. See TODO for more what I would have liked to do ideally.
2020-03-07 Rename socrates/default.nix -> socrates/configuration.nixWilliam Carroll1-0/+161
readTree uses the output attribute set of default.nix as the value for nixos.socrates, which disables me from resolving nixos.socrates.rebuild since there is no rebuild attribute in the output attribute set from default.nix. If I rename default.nix -> configuration.nix, I can resolve nixos.socrates.{configuration,hardware,rebuild}.