nixinate/examples/flake.nix
2022-01-31 19:56:47 +00:00

25 lines
640 B
Nix

{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-21.11";
nixinate.url = "path:///etc/nixos/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 ...
];
};
};
};
}