aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
blob: d7bc07eaac9ca4191328c024a34624e3135fad3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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 ...
        ];
      };
    };
  };
}