From 01fc0e14ef3b6a8af8bb60f84ebb6b5474bab410 Mon Sep 17 00:00:00 2001 From: nin Date: Thu, 13 Jul 2017 23:53:54 +0200 Subject: move source config from module system to 1systems/*/source.nix --- nin/source.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 nin/source.nix (limited to 'nin/source.nix') diff --git a/nin/source.nix b/nin/source.nix new file mode 100644 index 000000000..1eb9185ab --- /dev/null +++ b/nin/source.nix @@ -0,0 +1,19 @@ +with import ; +host@{ name, secure ? false }: let + builder = if getEnv "dummy_secrets" == "true" + then "buildbot" + else "nin"; + _file = + "/nin/1systems/${name}/source.nix"; +in + evalSource (toString _file) { + nixos-config.symlink = "stockholm/nin/1systems/${name}/config.nix"; + secrets.file = getAttr builder { + buildbot = toString ; + nin = "/home/nin/secrets/${name}"; + }; + stockholm.file = toString ; + nixpkgs.git = { + url = https://github.com/nixos/nixpkgs; + ref = "01c3847"; + }; + } -- cgit v1.2.3