diff --git a/users/pbsds/home/default.nix b/users/pbsds/home/default.nix index 7a5bec4..ed409f8 100644 --- a/users/pbsds/home/default.nix +++ b/users/pbsds/home/default.nix @@ -1,5 +1,5 @@ # https://nix-community.github.io/home-manager/options.html -{ pkgs, config, ... }: +{ pkgs, lib, config, ... }: { #nixpkgs.config.allowUnfree = true; home.stateVersion = "23.11"; @@ -134,6 +134,14 @@ ])) ]; + # https://docs.astral.sh/uv/configuration/files/ + # https://docs.astral.sh/uv/reference/settings/ + xdg.configFile."uv/uv.toml".source = (pkgs.formats.toml { }).generate "uv-config" { + python-downloads = "never"; + python-preference = "only-system"; + pip.index-url = "https://test.pypi.org/simple"; + }; + xdg.configFile."ptpython/config.py" = { source = ./files/ptpython-config.py; force = true;