From bdd34fe6fbaf4b5826708ca4d74bef2673257c94 Mon Sep 17 00:00:00 2001 From: chn Date: Sun, 10 Mar 2024 10:41:39 +0800 Subject: [PATCH] init --- flake.lock | 27 +++++++++++++++++++++++++++ flake.nix | 16 ++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..cebb8fc --- /dev/null +++ b/flake.lock @@ -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 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..46282bb --- /dev/null +++ b/flake.nix @@ -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"; } + ]; + }; + }; +} \ No newline at end of file