diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..979c745 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +.vscode/launch.json +**/.DS_Store +.zed/ +**/.venv/ \ No newline at end of file diff --git a/slides/flake.lock b/slides/flake.lock new file mode 100644 index 0000000..10c64f8 --- /dev/null +++ b/slides/flake.lock @@ -0,0 +1,61 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1753749649, + "narHash": "sha256-+jkEZxs7bfOKfBIk430K+tK9IvXlwzqQQnppC2ZKFj4=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "1f08a4df998e21f4e8be8fb6fbf61d11a1a5076a", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-25.05", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/slides/flake.nix b/slides/flake.nix index 2867f0a..562c6c2 100644 --- a/slides/flake.nix +++ b/slides/flake.nix @@ -1,24 +1,3 @@ -# { ... }: - -# let -# pkgs = -# import -# (fetchTarball "https://github.com/NixOS/nixpkgs/archive/10e687235226880ed5e9f33f1ffa71fe60f2638a.tar.gz") -# { }; -# in -# pkgs.mkShell { -# packages = [ -# (with pkgs; [ -# locale -# ]) -# (pkgs.python312Full.withPackages ( -# python-pkgs: with python-pkgs; [ -# pip -# ] -# )) -# ]; -# } - { description = "Python environment"; @@ -29,6 +8,7 @@ outputs = { + self, nixpkgs, flake-utils, }: @@ -50,6 +30,14 @@ ] )) ]; + shellHook = '' + export PS1='[python][\u@\h:\w]\$ ' + python -m venv .venv + source .venv/bin/activate + pip install mkslides --upgrade + deactivate + alias mkslides='.venv/bin/mkslides' + ''; }; } );