2022-03-23 23:53:17 +00:00
|
|
|
# TODO: use a relative path to nixinate, so that everything is contained within this repo.
|
|
|
|
# This would rely upon https://github.com/NixOS/nix/pull/5437 being merged.
|
2022-01-26 20:17:20 +00:00
|
|
|
{
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-21.11";
|
2022-03-23 23:53:17 +00:00
|
|
|
nixinate.url = "github:matthewcroughan/nixinate";
|
2022-01-26 20:17:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs, nixinate }: {
|
|
|
|
apps = nixinate.nixinate.x86_64-linux self;
|
|
|
|
nixosConfigurations = {
|
|
|
|
myMachine = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
2022-03-23 23:53:17 +00:00
|
|
|
{
|
2022-01-26 20:17:20 +00:00
|
|
|
_module.args.nixinate = {
|
|
|
|
host = "itchy.scratchy.com";
|
|
|
|
sshUser = "matthew";
|
2022-01-31 19:56:47 +00:00
|
|
|
buildOn = "local"; # valid args are "local" or "remote"
|
2022-01-26 20:17:20 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
# ... other configuration ...
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|