-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e56fb78
commit c0f9774
Showing
8 changed files
with
1,160 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; } | ||
]; | ||
} |
Oops, something went wrong.