From 05fe5ec5ee6286d47efc15658f10b83b27ff304e Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 26 Feb 2018 14:45:21 +0100 Subject: initial commit --- default.nix | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 default.nix (limited to 'default.nix') diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..a6feeb4 --- /dev/null +++ b/default.nix @@ -0,0 +1,47 @@ +{ nixpkgs, declInput }: let pkgs = import nixpkgs {}; in { + # this file generates the spec.json file which contains all the jobs + # a job set may be all the hosts of a user of stockholm + + # what we need to get here is for each host we want to build the "input" + # from its source.nix and add them to the "inputs" field + # in addition to that we need to define how a system is built inside the + # "local" release.nix + + # nixexprinput points to the path expression which should be used for evaluation + # nixexprpath is the file which will be built. + # that means in best case we should be able to use default.nix from + # after nixos-config is set! + + jobsets = pkgs.runCommand "spec.json" {} '' + cat < $out <", "emailresponsible": false }, + "secrets": { "type": "path", "value": "", "emailresponsible": false }, + "host" { "type": "string", "value": "x", "emailresponsible": false }, + "owner" { "type": "string", "value": "makefu", "emailresponsible": false } + } + } + } + EOF + ''; +} -- cgit v1.2.3