summary refs log tree commit diff
path: root/flake.nix
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2026-07-13 20:00:00 +0200
committerMel <mel@rnrd.eu>2026-07-13 20:00:00 +0200
commitdd8f085fc0232b77f3db885b0670a3e8d3094d36 (patch)
tree940d89b684dbaa5175d816ad3d1bdafc8a397e1c /flake.nix
parent398608948fa730883d234a636cb33f73f2da51cf (diff)
downloadmhs35-drm-dd8f085fc0232b77f3db885b0670a3e8d3094d36.tar.zst
mhs35-drm-dd8f085fc0232b77f3db885b0670a3e8d3094d36.zip
Wrap into NixOS and Nix flake HEAD main
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..2f3d5d3
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,20 @@
+{
+  description = "DRM driver and NixOS module for goodtft MHS-3.5 Raspberry Pi displays";
+
+  inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
+
+  outputs = { self, nixpkgs }:
+    let
+      system = "aarch64-linux";
+      pkgs = import nixpkgs { inherit system; };
+    in
+    {
+      nixosModules.default = import ./module.nix;
+
+      # standalone kernel module.
+      # built against the default nixpkgs kernel, if you need it inside
+      # of your kernel, use the nixos module above!
+      packages.${system}.default =
+        pkgs.linuxPackages.callPackage ./package.nix { };
+    };
+}