about summary refs log tree commit diff
path: root/nixos/socrates
AgeCommit message (Collapse)AuthorFilesLines
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 Carroll2-1/+1
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}.
2020-03-07 Ensure socrates/default.nix is a functionWilliam Carroll1-0/+2
Nix complains that `nixos.socrates` is not a function but a set. By adding `{ ... }:` to the top of the file, I'm hoping to change it from a set to a function.
2020-03-07 Attempt to serve {learn,blog}.wpcarro.devWilliam Carroll1-10/+12
Reading an Nginx tutorial and trying to port the information over to NixOS.
2020-03-07 Remove fix-point recursion from socrates/default.nixWilliam Carroll1-2/+2
The fixed-point recursion isn't necessary.
2020-03-01 Manually require dependencies for <nixpkgs>, <briefcase>William Carroll1-2/+8
When I build socrates using `sudo nixos-rebuild [...] switch`, my `nixos-config` (i.e. <briefcase/nixos/socrates/default.nix>) is a simple Nix anonymous function. Typically readTree populates my pkgs, briefcase, depot function parameters with <nixpkgs>, <briefcase>, <depot>, but `nixos-rebuild` is unaware of `readTree`. For now I'm manually importing these dependencies, and I'm leaving a TODO to reconsider switching to the `{ pkgs, briefcase, ... }` style when I better understand NixOS.
2020-03-01 Nest configuration beneath socrates directoryWilliam Carroll3-0/+192
Create a socrates directory to store configuration for socrates.