nixinate/examples/flake.nix
matthewcroughan 56878e1a42 Fix examples
2022-03-23 23:53:43 +00:00

27 lines
811 B
Nix

# 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.
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-21.11";
nixinate.url = "github:matthewcroughan/nixinate";
};
outputs = { self, nixpkgs, nixinate }: {
apps = nixinate.nixinate.x86_64-linux self;
nixosConfigurations = {
myMachine = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
{
_module.args.nixinate = {
host = "itchy.scratchy.com";
sshUser = "matthew";
buildOn = "local"; # valid args are "local" or "remote"
};
}
# ... other configuration ...
];
};
};
};
}