30 lines
672 B
Nix
30 lines
672 B
Nix
|
let
|
||
|
home-manager-package = builtins.fetchGit {
|
||
|
url = "https://github.com/nix-community/home-manager.git";
|
||
|
ref = "release-20.09";
|
||
|
};
|
||
|
|
||
|
pkgs = builtins.fetchGit {
|
||
|
url = "https://github.com/NixOS/nixpkgs.git";
|
||
|
ref = "release-20.09";
|
||
|
};
|
||
|
|
||
|
initialize = import ../initialize.nix;
|
||
|
|
||
|
host-config = ip: config:
|
||
|
{ ... }: {
|
||
|
imports = [
|
||
|
(initialize {
|
||
|
hostname = config.hostname;
|
||
|
profile = config.profile;
|
||
|
site = config.site;
|
||
|
domain = config.domain;
|
||
|
home-manager-package = home-manager-package;
|
||
|
})
|
||
|
];
|
||
|
|
||
|
deployment.targetHost = ip;
|
||
|
};
|
||
|
|
||
|
in { host-config = host-config; }
|