flake: rewrite to use flake-parts

This commit is contained in:
Infinidoge 2023-07-28 15:30:10 -04:00
parent 728a071b52
commit 50debb5dec
21 changed files with 445 additions and 760 deletions

View file

@ -1,6 +1,24 @@
{ self, inputs, ... }:
{ self, lib, ... }:
{
exportedModules = [
./devos.nix
];
perSystem = { pkgs, ... }: {
devshells.default =
let
pythonEnv = (pkgs.python310.withPackages (p: with p; [
pkgs.qtile.passthru.unwrapped
]));
in
{
devshell.packages = [
pythonEnv
];
env = [
{
name = "PYTHONPATH";
value = "${pythonEnv}/${pythonEnv.sitePackages}";
}
];
};
};
}