Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
anoadragon453 committed Oct 26, 2024
1 parent e56fb78 commit c0f9774
Show file tree
Hide file tree
Showing 8 changed files with 1,160 additions and 0 deletions.
22 changes: 22 additions & 0 deletions project-flakes/mscbot-python/flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
inputs = {
utility.url = "path:///home/work/code/nix-flakes/utility";
};

outputs = inputs@{ self, nixpkgs, ... }:
let
overlays = [ (import inputs.rust-overlay) ]
++ inputs.complement.overlays
++ inputs.sytest.overlays;
module = (import ./module.nix);
in {
inherit overlays module;
} // inputs.utility.mkDevShells {
inherit nixpkgs overlays;
modules = [
module
inputs.complement.module
inputs.sytest.module
];
};
}
19 changes: 19 additions & 0 deletions project-flakes/mscbot-python/module.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# ci.project-url: https://github.com/matrix-org/mscbot-python
# ci.test-command: ls
{ pkgs, ... }:

{
# Configure packages to install.
# Search for package names at https://search.nixos.org/packages?channel=unstable
packages = with pkgs; [ ];

# Install Python
languages.python.enable = true;
languages.python.package = pkgs.python311;

# Set up postgres with a database called "mscbot"
services.postgres.enable = true;
services.postgres.initialDatabases = [
{ name = "mscbot"; }
];
}
Loading

0 comments on commit c0f9774

Please sign in to comment.