From 1d7f45e6327bef4e5da2b3eb039ef621d18f4ac2 Mon Sep 17 00:00:00 2001 From: Kate Temkin Date: Sat, 27 Apr 2024 21:35:47 -0600 Subject: [PATCH] add-to-config: finish and clean up mistakes --- TODO.md | 1 - content/add-to-config.md | 29 ++++++++++++++++++++--------- 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/TODO.md b/TODO.md index 0b2940bb..ed818358 100644 --- a/TODO.md +++ b/TODO.md @@ -5,7 +5,6 @@ TODO List - Fix the favicon - Fix the TODO FIXME section of install / existing installs. -- Fix the TODO FIXME section of add-to-config / non-flake. - Figure out what to replace the location section with. - Fill out the "contact us" section on the main page. - Figure out any legalese we need on the main page. diff --git a/content/add-to-config.md b/content/add-to-config.md index 4b4279cd..6ab5fc53 100644 --- a/content/add-to-config.md +++ b/content/add-to-config.md @@ -22,14 +22,19 @@ Adding Lix to a flake-based configuration is relatively simple. First, add the L # Note that this assumes you have a flake-input called nixpkgs, # which is often the case. If you've named it something else, # you'll need to change the `nixpkgs` below. + lix = { + url = "git+ssh://git@git.lix.systems/lix-project/lix"; + flake = false; + }; lix-module = { url = "git+https://git.lix.systems/lix-project/nixos-module"; + inputs.lix.follows = "lix"; inputs.nixpkgs.follows = "nixpkgs"; }; } - # + # } ``` @@ -41,7 +46,7 @@ Next, add the `lix-module` as one of the arguments to your output function: # Add the `lix-module` argument to your output function, as below: outputs = {nixpkgs, lix-module, ...}: { - # + # } } ``` @@ -69,7 +74,7 @@ Finally, add the Lix _NixOS Module_ to your configuration: }; } - # + # } ``` @@ -107,17 +112,23 @@ section, and add the line provided in the configuration ./hardware-configuration.nix # This is the core line -- it pulls down the Lix module and - # includes it in your configuration. + # includes it in your configuration. It looks much nicer with a let + # binding -- but for clarity, we'll leave that as an exercise for the + # reader. :) # # Note that the tag (e.g. v2.90) in the URL here is what determines # which version of Lix you'll wind up with. - # *** TODO FIXME *** - (import "${your-pinning-thingy.lix-nixos-module}/module.nix" { - lix = your-pinning-thingy.lix; - }) + (import + ( + (fetchTarball { url = "https://git.lix.systems/lix-project/nixos-module/archive/main.tar.gz"; }) + "/module.nix" + ) + { + lix = fetchTarball { url = "https://git.lix.systems/lix-project/lix/archive/main.tar.gz"; }; + } + ) ]; - # + # } ```