Remove templates and change home-manager package location for new distrobox-based workflow

This commit is contained in:
Evie Litherland-Smith 2023-06-01 15:09:41 +01:00
parent 8e24950af9
commit cea6740729
2 changed files with 1 additions and 11 deletions

View file

@ -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

View file

@ -1,10 +0,0 @@
{pkgs ? import <nixpkgs> {}, ...}:
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
'';
}