diff options
author | tv <tv@krebsco.de> | 2016-07-16 21:43:38 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-07-17 00:53:21 +0200 |
commit | d5597657f82594fe7bb6c42f955e36349db56be0 (patch) | |
tree | d98b43890df2d88afe547b78ac749507ff538732 /shared/2configs/base.nix | |
parent | 276ac20406cb8be29a21f8d061aa8114b2195ab8 (diff) |
replace krebs.build.populate by populate
Diffstat (limited to 'shared/2configs/base.nix')
-rw-r--r-- | shared/2configs/base.nix | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/shared/2configs/base.nix b/shared/2configs/base.nix index bbb089c..a92a0df 100644 --- a/shared/2configs/base.nix +++ b/shared/2configs/base.nix @@ -7,15 +7,14 @@ with config.krebs.lib; # TODO rename shared user to "krebs" krebs.build.user = mkDefault config.krebs.users.shared; - krebs.build.source = { - nixpkgs = mkDefault { + krebs.build.source = let inherit (config.krebs.build) host user; in { + nixos-config.symlink = "stockholm/${user.name}/1systems/${host.name}.nix"; + nixpkgs.git = { url = https://github.com/NixOS/nixpkgs; - rev = "63b9785"; # stable @ 2016-06-01 + ref = "63b9785"; # stable @ 2016-06-01 }; - secrets = mkDefault "${getEnv "HOME"}/secrets/krebs/${config.krebs.build.host.name}"; - stockholm = mkDefault "${getEnv "HOME"}/stockholm"; - - nixos-config = "symlink:stockholm/${config.krebs.build.user.name}/1systems/${config.krebs.build.host.name}.nix"; + secrets.file = "${getEnv "HOME"}/secrets/krebs/${host.name}"; + stockholm.file = "${getEnv "HOME"}/stockholm"; }; networking.hostName = config.krebs.build.host.name; |