This commit is contained in:
陈浩南 2024-03-10 10:41:39 +08:00
commit bdd34fe6fb
2 changed files with 43 additions and 0 deletions

27
flake.lock Normal file
View File

@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1709962988,
"narHash": "sha256-0RQgOuv7sqs5m2aWoXOCYaqbiwORms1kaoB/4vOM5BY=",
"owner": "CHN-beta",
"repo": "nixpkgs",
"rev": "a987675eb3d475c7949e508f6bfaf0e36ae1b674",
"type": "github"
},
"original": {
"owner": "CHN-beta",
"ref": "nixos-23.11",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

16
flake.nix Normal file
View File

@ -0,0 +1,16 @@
{
description = "NixOS Raspberry Pi configuration flake";
inputs.nixpkgs.url = "github:CHN-beta/nixpkgs/nixos-23.11";
outputs = inputs:
{
nixosConfigurations.pi3b = inputs.nixpkgs.lib.nixosSystem
{
system = "aarch64-linux";
modules =
[
"${inputs.nixpkgs}/nixos/modules/installer/sd-card/sd-image-aarch64.nix"
{ config.system.stateVersion = "22.11"; }
];
};
};
}