baryte: prepare initial sd image

This commit is contained in:
xinyangli 2024-12-29 01:01:38 +08:00
parent 25cef508c9
commit 465fa0e127
Signed by: xin
SSH key fingerprint: SHA256:UU5pRTl7NiLFJbWJZa+snLylZSXIz5rgHmwjzv8v4oE
3 changed files with 58 additions and 0 deletions

22
flake.lock generated
View file

@ -621,6 +621,27 @@
"type": "github"
}
},
"nixos-sbc": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1735186792,
"narHash": "sha256-XIIf8bU1khErw+dm66CdtHKQUGTMXuARWx08FtGNjqo=",
"owner": "nakato",
"repo": "nixos-sbc",
"rev": "0f6fe1d77b3fc2198aabf76453f0a5159c9835c5",
"type": "github"
},
"original": {
"owner": "nakato",
"ref": "main",
"repo": "nixos-sbc",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1731139594,
@ -818,6 +839,7 @@
"nix-index-database": "nix-index-database",
"nix-vscode-extensions": "nix-vscode-extensions",
"nixos-hardware": "nixos-hardware",
"nixos-sbc": "nixos-sbc",
"nixpkgs": "nixpkgs_2",
"nixpkgs-stable": "nixpkgs-stable_2",
"nur": "nur",

View file

@ -62,6 +62,11 @@
url = "github:xinyangli/comin";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-sbc = {
url = "github:nakato/nixos-sbc/main";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
@ -80,6 +85,7 @@
nix-index-database,
disko,
comin,
nixos-sbc,
...
}:
let
@ -147,6 +153,11 @@
disko.nixosModules.disko
./machines/biotite
];
baryte = [
nixos-sbc.nixosModules.default
nixos-sbc.nixosModules.boards.bananapi.bpir4
./machines/baryte
];
};
sharedColmenaModules = [
deploymentModule
@ -311,6 +322,9 @@
calcite = mkNixos {
hostname = "calcite";
};
baryte = mkNixos {
hostname = "baryte";
};
} // self.colmenaHive.nodes;
}

View file

@ -0,0 +1,22 @@
{ config, lib, ... }:
{
imports = [
];
config = {
nixpkgs.hostPlatform = "aarch64-linux";
system.stateVersion = "25.05";
users.users.root.hashedPassword = "$y$j9T$NToEZWJBONjSgRnMd9Ur9/$o6n7a9b8eUILQz4d37oiHCCVnDJ8hZTZt.c.37zFfU.";
commonSettings = {
auth.enable = true;
};
services.openssh.enable = true;
services.dae = {
enable = true;
configFile = "/var/lib/dae/config.dae";
};
services.tailscale.enable = true;
time.timeZone = "Asia/Shanghai";
};
}