-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
56 lines (54 loc) · 1.38 KB
/
flake.nix
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
description = "Car Thang NixOS";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixos-superbird.url = "github:joeyeamigh/nixos-superbird/main";
deploy-rs.url = "github:serokell/deploy-rs";
};
outputs =
{
self,
nixpkgs,
nixos-superbird,
deploy-rs,
}:
let
inherit (nixpkgs.lib) nixosSystem;
in
{
nixosConfigurations = {
superbird = nixosSystem {
system = "aarch64-linux";
modules = [
nixos-superbird.nixosModules.superbird
(
{ pkgs, ... }:
let
car_thang = (pkgs.callPackage ./thang.nix { });
in
{
superbird.gui.app = "${car_thang}/bin/car_thang";
system.stateVersion = "24.11";
}
)
];
};
};
deploy.nodes = {
superbird = {
hostname = "172.16.42.2";
fastConnection = false;
remoteBuild = false;
profiles.system = {
sshUser = "root";
path = deploy-rs.lib.aarch64-linux.activate.nixos self.nixosConfigurations.superbird;
user = "root";
sshOpts = [
"-i"
"${self.nixosConfigurations.superbird.config.system.build.ed25519Key}"
];
};
};
};
};
}