From cea67407296ec0b299a31a32431fe3e13c733457 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Thu, 1 Jun 2023 15:09:41 +0100 Subject: [PATCH] Remove templates and change home-manager package location for new distrobox-based workflow --- common.nix | 2 +- templates/python39/shell.nix | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) delete mode 100644 templates/python39/shell.nix diff --git a/common.nix b/common.nix index cf6f4ea2..b5d9f17f 100644 --- a/common.nix +++ b/common.nix @@ -4,7 +4,7 @@ nixpkgs.config.allowUnfree = true; # Home manager integration with NixOS - home-manager.useUserPackages = true; + home-manager.useUserPackages = false; home-manager.useGlobalPkgs = true; # Enable networking diff --git a/templates/python39/shell.nix b/templates/python39/shell.nix deleted file mode 100644 index 5d7697f7..00000000 --- a/templates/python39/shell.nix +++ /dev/null @@ -1,10 +0,0 @@ -{pkgs ? import {}, ...}: -pkgs.mkShell { - nativeBuildInputs = with pkgs; [python39 poetry git]; - shellHook = '' - export LD_LIBRARY_PATH=${pkgs.stdenv.cc.cc.lib}/lib:${pkgs.zlib}/lib:${pkgs.python39}/lib:$LD_LIBRARY_PATH - export PROJECT_NAME=$(basename $(readlink -f .)) - [ -e .venv/bin/python3 ] && VENV_FLAG="--upgrade" || VENV_FLAG="--clear"; python3 -m venv --prompt $PROJECT_NAME $VENV_FLAG .venv - [ -e .venv/bin/activate ] && source .venv/bin/activate - ''; -}