summaryrefslogtreecommitdiffstats
path: root/default.nix
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-10-20 03:49:10 +0200
committertv <tv@shackspace.de>2015-10-20 03:51:39 +0200
commitf3873a264000119ff3f1bd92965573733750febe (patch)
tree0ad8ed8da4e4858e391c095777c16ddc5d385aca /default.nix
parent433479bc517d966ff6b56fb55e0b91500cad9e45 (diff)
stockholm: call the base module what it is
This reduces confusion when referring to stockholm, which is either the whole repository or the value of the top-level default.nix, which is in a way the same thing. :)
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix20
1 files changed, 11 insertions, 9 deletions
diff --git a/default.nix b/default.nix
index dbf7fdde7..f88acd284 100644
--- a/default.nix
+++ b/default.nix
@@ -42,7 +42,7 @@ let out = {
inherit users;
# Additionally, output lib and pkgs for easy access from the shell.
- # Notice how we're evaluating just the stockholm module to obtain pkgs.
+ # Notice how we're evaluating just the base module to obtain pkgs.
inherit lib;
inherit (eval {}) pkgs;
};
@@ -55,10 +55,10 @@ let out = {
kpath = lib.nspath "krebs";
upath = lib.nspath current-user-name;
- # This is the base stockholm NixOS module. It's purpose is to provide a
- # modules and packages, both common ones, found in krebs/ as well as the
- # current user's, found in the user's namespace.
- stockholm = {
+ # This is the base module. Its purpose is to provide modules and
+ # packages, both common ones, found in krebs/ as well as the current user's,
+ # found in the user's namespace.
+ base-module = {
imports = map (f: f "3modules") [ kpath upath ];
nixpkgs.config.packageOverrides = pkgs:
@@ -71,13 +71,15 @@ let out = {
kpkgs // upkgs;
};
- # The above stockholm module is used together with a NixOS configuration to
- # produce a system. Stockholm really just provides additional packages and
- # modules that don't fit upstream for one reason or another.
+ # The above base module is used together with a NixOS configuration to
+ # produce a system. Notice how stockholm really just provides additional
+ # packages and modules on top of NixOS. Some of this stuff might become
+ # useful to a broader audience, at which point it should probably be merged
+ # and pull-requested for inclusion into NixOS/nixpkgs.
# TODO provide krebs lib, so modules don't have to import it awkwardly
eval = config: import <nixpkgs/nixos/lib/eval-config.nix> {
modules = [
- stockholm
+ base-module
config
];
};