Skip to content

Commit

Permalink
feat: migrate away from poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkolenz committed Jan 10, 2025
1 parent 8e5fc8b commit 6434fb7
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 66 deletions.
110 changes: 55 additions & 55 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@
url = "github:recap-utr/arguebuf-python/v2";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-parts.follows = "flake-parts";
inputs.poetry2nix.follows = "poetry2nix";
inputs.flocken.follows = "flocken";
};

Expand All @@ -133,10 +132,6 @@
inputs.uv2nix.follows = "uv2nix";
inputs.nixpkgs.follows = "nixpkgs";
};
poetry2nix = {
url = "github:nix-community/poetry2nix";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-generators = {
url = "github:nix-community/nixos-generators";
inputs.nixpkgs.follows = "nixpkgs-linux-unstable";
Expand Down
4 changes: 2 additions & 2 deletions home/mlenz/packages/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@
edir
];
home.shellAliases = {
py = "poetry run python"; # should use local poetry if possible
cat = lib.getExe pkgs.bat;
py = "${lib.getExe config.programs.uv.package} run";
cat = lib.getExe config.programs.bat.package;
l = "ll";
sudo =
let
Expand Down
2 changes: 0 additions & 2 deletions home/mlenz/packages/workstation.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
pkgs,
lib,
osConfig,
config,
...
}:
let
Expand Down Expand Up @@ -74,7 +73,6 @@ lib.mkIf (pkgs.stdenv.isDarwin || (osConfig.services.xserver.enable or false)) {
# my own packages
makejinja
# arguebuf
(writeShellScriptBin "poetryup" ''exec ${lib.getExe config.programs.poetry.package} up "$@"'')
(writeShellScriptBin "npmup" ''exec ${lib.getExe npm-check-updates} "$@"'')
];
}
3 changes: 1 addition & 2 deletions home/mlenz/programs/poetry.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{ pkgs, ... }:
{ ... }:
{
programs.poetry = {
enable = true;
package = pkgs.poetry.withPlugins (ps: with ps; [ poetry-plugin-up ]);
settings = {
virtualenvs = {
in-project = true;
Expand Down

0 comments on commit 6434fb7

Please sign in to comment.