init: set up Nix environment

This commit is contained in:
Kiana Sheibani 2025-09-04 19:27:40 -04:00
commit a8a8cddae6
Signed by: toki
GPG key ID: 6CB106C25E86A9F7
5 changed files with 127 additions and 0 deletions

22
flake.nix Normal file
View file

@ -0,0 +1,22 @@
{
description = "Nix sandbox for CS4306 assignments";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
systems.url = "github:nix-systems/default";
};
outputs = { self, nixpkgs, systems, ... }:
let eachSystem = nixpkgs.lib.genAttrs (import systems);
in {
packages = eachSystem (system:
let pkgs = nixpkgs.legacyPackages.${system};
in {});
devShells = eachSystem (system:
let pkgs = nixpkgs.legacyPackages.${system};
in {
default = pkgs.callPackage ./shell.nix {};
});
};
}