From 8fa86294cfb2798bdf844a629a5694e582c72542 Mon Sep 17 00:00:00 2001 From: Irene Knapp Date: Wed, 16 Apr 2025 15:58:55 -0700 Subject: initial configuration of a nix flake this also sets up direnv and gitignore Change-Id: Ifa286098ec0be1122e167757c11be1cd3d06ec93 Force-Push: I'm trying to do initial setup and I want to move quickly --- flake.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..ba78e40 --- /dev/null +++ b/flake.nix @@ -0,0 +1,26 @@ +{ + inputs = { + nixpkgs = { + type = "github"; + owner = "NixOS"; + repo = "nixpkgs"; + ref = "nixos-24.11"; + }; + }; + + outputs = { self, nixpkgs, ... }@attrs: + let supportedSystems = [ "aarch64-linux" "x86-64-linux" ]; + forAllSystems = nixpkgs.lib.genAttrs supportedSystems; + nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; }); + in { + nixosModules.default = { ... }: { + imports = [ ]; + }; + + devShells = forAllSystems (system: let pkgs = nixpkgsFor.${system}; in { + default = pkgs.mkShell { + buildInputs = with pkgs; [ ]; + }; + }); + }; +} -- cgit 1.4.1