aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2023-08-11 16:51:35 +0200
committerMax Audron <audron@cocaine.farm>2023-08-11 16:51:35 +0200
commit5828af9fc19e18dc85e49fcc1a251a7eb25d909c (patch)
treec70c3e52237c08d3fdcb2f1269c524c25e3feeb8 /flake.nix
init
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..d7bc07e
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,28 @@
+{
+ inputs = {
+ nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
+ nixinate.url = "github:matthewcroughan/nixinate";
+ };
+
+ outputs = { self, nixpkgs, nixinate }: {
+ apps = nixinate.nixinate.aarch64-darwin self;
+ nixosConfigurations = {
+ nixos-test = nixpkgs.lib.nixosSystem {
+ system = "x86_64-linux";
+ modules = [
+ (import ./machines/nixos-test)
+ {
+ _module.args.nixinate = {
+ host = "10.49.212.3";
+ sshUser = "root";
+ buildOn = "remote";
+ substituteOnTarget = true;
+ hermetic = false;
+ };
+ }
+ # ... other configuration ...
+ ];
+ };
+ };
+ };
+}