From 4ee520eeb23aee31a7e941dfc567b5ae4c6c6d3a Mon Sep 17 00:00:00 2001 From: ChUrl Date: Wed, 10 Aug 2022 18:22:11 +0200 Subject: [PATCH] comment --- flake.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index bae56d61..70fd42c7 100644 --- a/flake.nix +++ b/flake.nix @@ -47,6 +47,7 @@ ]; }; + # I don't know how to extend the nixpkgs.lib directly so just propagate mylib to the config modules as argument mylib = import ./lib { inherit inputs pkgs; lib = nixpkgs.lib; }; # The rec expression turns a basic set into a set where self-referencing is possible. @@ -61,7 +62,7 @@ nixosConfigurations = { # We give our configuration a name (the hostname) to choose a configuration when rebuilding. - # This makes it easy to add different configurations later (e.g. for a laptop). + # This makes it easy to add different configurations (e.g. for a laptop). # Usage: sudo nixos-rebuild switch --flake .#nixinator nixinator = mylib.nixos.mkNixosConfig { inherit system mylib; @@ -70,6 +71,7 @@ username = "christoph"; }; + # Usage: sudo nixos-rebuild switch --flake .#nixtop nixtop = mylib.nixos.mkNixosConfig { inherit system mylib;