From 5457f0d98079986fe0275a68b197630a17571e62 Mon Sep 17 00:00:00 2001 From: Marty Sluijtman Date: Sun, 18 Sep 2022 11:47:40 +0200 Subject: [PATCH] More Nix commentary and gruvbox colorscheme --- content/about.md | 3 ++- content/rambles/adblock.md | 6 ++--- .../nix-on-other-distros-packagemanagers.md | 22 ++++++++++++++----- themes/vugo | 2 +- 4 files changed, 23 insertions(+), 10 deletions(-) diff --git a/content/about.md b/content/about.md index ed86fd4..050e088 100644 --- a/content/about.md +++ b/content/about.md @@ -11,7 +11,8 @@ description: "The obligatory about page" # The site itself -- Colorscheme: [Tomorrow Night](https://github.com/chriskempson/tomorrow-theme) In theory I would have a properly defined colorscheme. In practice, I have just been hacking things together in a way that looks nice. +- Colorscheme: [Gruvbox](https://github.com/morhetz/gruvbox) +Depending on `prefers-color-scheme:` in your browser settings being `light` or not, you get to see the light variant or not. - This site is viewable and usable on every browser I've thrown at it so far.\ I even spent a 10 minutes making this site look reasonable on mobile devices.\ Here's the browser list: diff --git a/content/rambles/adblock.md b/content/rambles/adblock.md index c4f9bd8..16ce35e 100644 --- a/content/rambles/adblock.md +++ b/content/rambles/adblock.md @@ -34,16 +34,16 @@ And two, not-insignificant portions of the internet _already are_ subscription b Sometimes you will even come across people who go as far to genuinely proclaim the preceding. To those people, the only thing I can do is quote the classic "You wouldn't download a car, would you?" Shortly followed by saying "Yes I fucking would, given the opportunity" -No one owes you shit based on the amount of people have ignore the ads on your website. +No one owes you shit based on the amount of people have ignored the ads on your website. Then there is also the argument to be made that ads steal one's attention. -The goal here being to manipulate you into buying their product. +The goal here being to manipulate you into buying a product. Much like with piracy, the you're not missing out on anything. The only way you would've seen any money from it, would be when you're audience directly sees your content and happens to get an ad shoved in their face. Though I suppose in the case of ads, your audience has no choice but to support you when they don't use an adblocker. In other words, you are forcing your audience to sacrifice their a part attention to support you, whether they want to or not. -In my opinion, this makes it morally wrong to make monkey off of ads. +In my opinion, this makes it morally wrong to make money off of ads. I'd argue it is a moral imperative to use an adblocker. diff --git a/content/rambles/nix-on-other-distros-packagemanagers.md b/content/rambles/nix-on-other-distros-packagemanagers.md index db6fe2e..1976c2d 100644 --- a/content/rambles/nix-on-other-distros-packagemanagers.md +++ b/content/rambles/nix-on-other-distros-packagemanagers.md @@ -14,7 +14,7 @@ This is purely a guide to installing it in Alpine and Debian Linux. **"Why not use the official instructions?"** -The official instructions require me to `curl` a script directly into `sh`. +The official instructions require you to `curl` a script directly into `sh`. From there it requires sudo privileges to install the package manager itself. This sets of a load of alarm bells in terms of security and what it's going to do from there. As the Nix package manager is packaged for both Debian and Alpine, my two favourite distros next to NixOS, there is no real reason _not_ to use their respective package managers. @@ -97,13 +97,11 @@ doas addgroup $USER nix ## Environment variables -The last step is to set a few environment variables. -I have the following in my `.profile` - +The next step is to set add the Nix binary dir to your `PATH`. +To that end, I have the following in my `.profile` ```sh # nix export PATH=$PATH:$HOME/.nix-profile/bin -export NIX_PATH=$HOME/.nix-defexpr/channels:/nix/var/nix/profiles/per-user/root/channels${NIX_PATH:+:$NIX_PATH} ``` Now source your `.profile` again, either using... @@ -137,3 +135,17 @@ To sync your (just added) channel(s), run: ```sh nix-channel --update ``` +From this point on you can query your channel(s) using either [the website](https://search.nixos.org/packages) (which is a lot quicker) or: +```sh +nix-env -qa +``` +Packages can be imperatively installed using... +```sh +nix-env -iA nixpkgs. +``` +...and removed using... +```sh +nix-env --uninstall +``` + +Consult [the manual](https://nixos.org/manual/nix/stable/) for further usage. diff --git a/themes/vugo b/themes/vugo index 3e3d1a3..84d88db 160000 --- a/themes/vugo +++ b/themes/vugo @@ -1 +1 @@ -Subproject commit 3e3d1a397bb23f881920d3cb9cf6f784cc750831 +Subproject commit 84d88dbefee14a184d1a8c7feaba1068c96d293a