Nix flake for DAT566 .
Includes Jupyter Notebook configuration with Python 3.13, libraries for the course (NumPy, Pandas and Matplotlib) and VSCode extensions.
Add the flake input to your flake.nix:
{
inputs.dat566.url = "github:LinuxAtChalmers/dat566-flake";
}Add the system module to configuration.nix which will install Python with the
necessary libraries:
{ pkgs, inputs, ... }:
{
imports = [
# import the NixOS module
inputs.dat566.nixosModules.default
];
}
Also add the Home Manager module, this will install the extensions for Visual Studio Code and set the relevant paths:
{ pkgs, inputs, ... }:
{
home-manager.users.youruser = {
# import the home manager module
imports = [
inputs.dat566.homeModules.vscode
];
};
}
Rebuild your system, you can now start Visual Studio Code and switch to the DAT566 profile. Everything should be set up for you.