diff --git a/data/devenv/templates/python39/flake.nix b/data/devenv/templates/python312/flake.nix similarity index 86% rename from data/devenv/templates/python39/flake.nix rename to data/devenv/templates/python312/flake.nix index 2e21e2b..c4f028a 100644 --- a/data/devenv/templates/python39/flake.nix +++ b/data/devenv/templates/python312/flake.nix @@ -1,6 +1,6 @@ { description = "Development flake for this python project"; - inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05"; inputs.flake-utils.url = "github:numtide/flake-utils"; outputs = { self, nixpkgs, flake-utils }: @@ -8,8 +8,8 @@ pkgs = nixpkgs.legacyPackages.${system}; - python = pkgs.python39; - pythonPackages = pkgs.python39Packages; + python = pkgs.python312; + pythonPackages = pkgs.python312Packages; projectDependencies = with pythonPackages; [ ]; diff --git a/modules/dev/devenv.nix b/modules/dev/devenv.nix index d8cf690..f8b7202 100644 --- a/modules/dev/devenv.nix +++ b/modules/dev/devenv.nix @@ -20,9 +20,9 @@ in devenv = "source $HOME/.local/share/devenv/devenv.sh"; }; - # TODO: This assumes we have alacritty and a python39 devenv set up (may want to fix this at some point) + # TODO: This assumes we have alacritty and a python311 devenv set up (may want to fix this at some point) samfelag.modules.desktop.i3.extraKeybindings = lib.mkIf i3Cfg.enable { - "${i3Cfg.mod}+Shift+P" = "exec ${pkgs.alacritty}/bin/alacritty -t floating-term -e zsh -c \"direnv exec ~/sandbox/python39 ipython\""; + "${i3Cfg.mod}+Shift+P" = "exec ${pkgs.alacritty}/bin/alacritty -t floating-term -e zsh -c \"direnv exec ~/sandbox/python311 ipython\""; }; # - Requirements -----------------------------