init
This commit is contained in:
parent
12d8d4cd8e
commit
3689dedd75
2 changed files with 75 additions and 207 deletions
42
flake.nix
42
flake.nix
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
description = "mail-quota-warning package and service";
|
||||
description = "stalwart-tlsa-cloudflare service and timer";
|
||||
|
||||
inputs.nixpkgs.url = "nixpkgs/nixos-25.11";
|
||||
|
||||
|
|
@ -15,45 +15,7 @@
|
|||
}
|
||||
);
|
||||
in {
|
||||
overlay = final: prev: {
|
||||
mail-quota-warning = with final; python3Packages.buildPythonApplication {
|
||||
pname = "mail-quota-warning";
|
||||
version = "0.0.1";
|
||||
format = "other";
|
||||
|
||||
src = self;
|
||||
|
||||
dependencies = with python3Packages; [
|
||||
python
|
||||
pyyaml
|
||||
imaplib2
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
install -Dm755 ${./mail-quota-warning.py} $out/bin/mail-quota-warning
|
||||
'';
|
||||
|
||||
meta.mainProgram = "mail-quota-warning";
|
||||
};
|
||||
};
|
||||
|
||||
packages = forAllSystems (system: {
|
||||
inherit (nixpkgsFor.${system}) mail-quota-warning;
|
||||
});
|
||||
|
||||
defaultPackage = forAllSystems (system: self.packages.${system}.mail-quota-warning);
|
||||
|
||||
devShells = forAllSystems (system: let
|
||||
pkgs = import nixpkgs { inherit system; overlays = [ self.overlay ]; };
|
||||
in pkgs.mkShell {
|
||||
buildInputs = with pkgs; with python3Packages; [
|
||||
python
|
||||
requests
|
||||
beautifulsoup4
|
||||
];
|
||||
});
|
||||
|
||||
# mail-quota-warning service module
|
||||
# stalwart-tlsa-cloudflare-update service module
|
||||
nixosModule = (import ./module.nix);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue