nixinate/examples/flake.nix

33 lines
869 B
Nix
Raw Permalink Normal View History

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
};
2023-12-11 20:37:06 +01:00
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 ...
];
};
2022-01-26 20:17:20 +00:00
};
};
}