refactor(nix): rework package management
This commit is contained in:
parent
698e6fce01
commit
7fbf509183
2 changed files with 15 additions and 17 deletions
|
@ -9,7 +9,7 @@ _: {
|
|||
{
|
||||
devShells = {
|
||||
default = pkgs.mkShell {
|
||||
nativeBuildInputs = config.buildPackages ++ config.develPackages ++ config.deployPackages;
|
||||
nativeBuildInputs = config.develPackages;
|
||||
shellHook = ''
|
||||
ln -snf ${config.pelicanplugins} plugins
|
||||
ln -snf ${config.pelicantheme} theme
|
||||
|
|
|
@ -19,12 +19,11 @@ in
|
|||
buildPackages = mkOption {
|
||||
description = mdDoc "Python package used in the project";
|
||||
type = types.listOf types.package;
|
||||
default = with pkgs; [
|
||||
python311
|
||||
python311Packages.markdown-include
|
||||
python311Packages.pelican
|
||||
python311Packages.typogrify
|
||||
];
|
||||
default = ( with pkgs.python311Packages; [
|
||||
markdown-include
|
||||
pelican
|
||||
typogrify
|
||||
]);
|
||||
};
|
||||
develPackages = mkOption {
|
||||
description = mdDoc "Python package used to development";
|
||||
|
@ -33,19 +32,18 @@ in
|
|||
convco
|
||||
go-task
|
||||
lefthook
|
||||
python3Packages.invoke
|
||||
python3Packages.livereload
|
||||
rsync
|
||||
shellcheck
|
||||
shfmt
|
||||
typos
|
||||
];
|
||||
};
|
||||
deployPackages = mkOption {
|
||||
description = mdDoc "Package use to deploy";
|
||||
type = types.listOf types.package;
|
||||
default = with pkgs; [
|
||||
rsync
|
||||
];
|
||||
]
|
||||
++ ( with pkgs.python311Packages; [
|
||||
markdown-include
|
||||
pelican
|
||||
typogrify
|
||||
livereload
|
||||
invoke
|
||||
]);
|
||||
};
|
||||
pelicanplugins = mkOption {
|
||||
type = types.package;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue