Author: sandervanderburg
Date: Wed Nov 24 23:00:21 2010
New Revision: 24848
URL: https://svn.nixos.org/websvn/nix/?rev=24848&sc=1
Log:
Implemented 'deployment' option to capture custom attributes related to the
system configuration
Added:
nixos/trunk/modules/misc/deployment.nix
Modified:
nixos/trunk/modules/module-list.nix
Added: nixos/trunk/modules/misc/deployment.nix
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ nixos/trunk/modules/misc/deployment.nix Wed Nov 24 23:00:21 2010
(r24848)
@@ -0,0 +1,23 @@
+{ config, pkgs, ... }:
+
+with pkgs.lib;
+
+{
+ options = {
+
+ deployment = mkOption {
+ description = ''
+ This option captures various custom attributes related to the
configuration of the system, which
+ are not directly used for building a system configuration. Usually
these attributes
+ are used by external tooling, such as the nixos-deploy-network tool or
the Disnix Avahi
+ publisher.
+ '';
+ default = {};
+ example = {
+ description = "My production machine";
+ hostname = "my.test.org";
+ country = "NL";
+ };
+ };
+ };
+}
Modified: nixos/trunk/modules/module-list.nix
==============================================================================
--- nixos/trunk/modules/module-list.nix Wed Nov 24 22:58:53 2010 (r24847)
+++ nixos/trunk/modules/module-list.nix Wed Nov 24 23:00:21 2010 (r24848)
@@ -24,6 +24,7 @@
./installer/tools/tools.nix
./misc/assertions.nix
./misc/check-config.nix
+ ./misc/deployment.nix
./misc/ids.nix
./misc/locate.nix
./misc/nixpkgs.nix
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits