baryte: prepare initial sd image
This commit is contained in:
parent
25cef508c9
commit
465fa0e127
3 changed files with 58 additions and 0 deletions
22
flake.lock
generated
22
flake.lock
generated
|
@ -621,6 +621,27 @@
|
||||||
"type": "github"
|
"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": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731139594,
|
"lastModified": 1731139594,
|
||||||
|
@ -818,6 +839,7 @@
|
||||||
"nix-index-database": "nix-index-database",
|
"nix-index-database": "nix-index-database",
|
||||||
"nix-vscode-extensions": "nix-vscode-extensions",
|
"nix-vscode-extensions": "nix-vscode-extensions",
|
||||||
"nixos-hardware": "nixos-hardware",
|
"nixos-hardware": "nixos-hardware",
|
||||||
|
"nixos-sbc": "nixos-sbc",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": "nixpkgs_2",
|
||||||
"nixpkgs-stable": "nixpkgs-stable_2",
|
"nixpkgs-stable": "nixpkgs-stable_2",
|
||||||
"nur": "nur",
|
"nur": "nur",
|
||||||
|
|
14
flake.nix
14
flake.nix
|
@ -62,6 +62,11 @@
|
||||||
url = "github:xinyangli/comin";
|
url = "github:xinyangli/comin";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nixos-sbc = {
|
||||||
|
url = "github:nakato/nixos-sbc/main";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
|
@ -80,6 +85,7 @@
|
||||||
nix-index-database,
|
nix-index-database,
|
||||||
disko,
|
disko,
|
||||||
comin,
|
comin,
|
||||||
|
nixos-sbc,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
@ -147,6 +153,11 @@
|
||||||
disko.nixosModules.disko
|
disko.nixosModules.disko
|
||||||
./machines/biotite
|
./machines/biotite
|
||||||
];
|
];
|
||||||
|
baryte = [
|
||||||
|
nixos-sbc.nixosModules.default
|
||||||
|
nixos-sbc.nixosModules.boards.bananapi.bpir4
|
||||||
|
./machines/baryte
|
||||||
|
];
|
||||||
};
|
};
|
||||||
sharedColmenaModules = [
|
sharedColmenaModules = [
|
||||||
deploymentModule
|
deploymentModule
|
||||||
|
@ -311,6 +322,9 @@
|
||||||
calcite = mkNixos {
|
calcite = mkNixos {
|
||||||
hostname = "calcite";
|
hostname = "calcite";
|
||||||
};
|
};
|
||||||
|
baryte = mkNixos {
|
||||||
|
hostname = "baryte";
|
||||||
|
};
|
||||||
} // self.colmenaHive.nodes;
|
} // self.colmenaHive.nodes;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
22
machines/baryte/default.nix
Normal file
22
machines/baryte/default.nix
Normal 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";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue