full reset
This commit is contained in:
parent
0b3e086c03
commit
1b58a0ded8
5 changed files with 0 additions and 898 deletions
42
flake.nix
42
flake.nix
|
@ -1,42 +0,0 @@
|
|||
{
|
||||
description = "Bitpoll - A web application for scheduling meetings and general polling";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
bitpoll = pkgs.callPackage ./package.nix { };
|
||||
in
|
||||
{
|
||||
packages = {
|
||||
default = bitpoll;
|
||||
bitpoll = bitpoll;
|
||||
};
|
||||
|
||||
devShells.default = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
python3
|
||||
python3Packages.pip
|
||||
python3Packages.virtualenv
|
||||
postgresql
|
||||
uwsgi
|
||||
];
|
||||
shellHook = ''
|
||||
echo "Bitpoll development environment"
|
||||
echo "Run 'nix build' to build the package"
|
||||
echo "Run 'nixos-rebuild switch --flake .#' to deploy the service"
|
||||
'';
|
||||
};
|
||||
}
|
||||
) // {
|
||||
nixosModules = {
|
||||
default = import ./module.nix;
|
||||
bitpoll = import ./module.nix;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue