linux-utils/nixos-module.nix

68 lines
1.3 KiB
Nix
Raw Normal View History

{ pkgs , ... } :
2025-03-04 12:29:13 +01:00
with pkgs ;
with pkgs . kernelmaft ;
{
nixpkgs = {
overlays = [
2025-03-04 12:38:48 +01:00
( self : super : {
kernelmaft = {
2025-03-04 12:38:48 +01:00
bookwyrm = callPackage (
import ./bookwyrm.nix
) {} ;
2025-03-03 21:14:55 +01:00
2025-03-04 12:38:48 +01:00
python = {
2025-03-04 12:38:48 +01:00
bw-file-resubmit = callPackage (
import ./python3.11-bw-file-resubmit.nix
) {} ;
2025-03-03 21:14:55 +01:00
2025-03-04 12:38:48 +01:00
django-imagekit = callPackage (
import ./python3.11-django-imagekit.nix
) {} ;
2025-03-03 21:14:55 +01:00
2025-03-04 12:38:48 +01:00
django-pgtrigger = callPackage (
import ./python3.11-django-pgtrigger.nix
) {} ;
2025-03-03 21:14:55 +01:00
2025-03-04 12:38:48 +01:00
django-sass-processor = callPackage (
import ./python3.11-django-sass-processor.nix
) {} ;
2025-03-03 21:14:55 +01:00
2025-03-04 12:38:48 +01:00
s3-tar = callPackage (
import ./python3.11-s3-tar.nix
) {} ;
2025-03-03 21:14:55 +01:00
} ;
2025-03-04 12:38:48 +01:00
} ;
# TODO: Use the following template once the custom Python packages have been converted to use `buildPythonPackage`
#
# python311 = super . python311 . override {
# packageOverrides = python-self : python-super : {
# package-name = super . callPackage ( import ./package-file.nix ) {} ;
# } ;
# } ;
2025-03-04 12:38:48 +01:00
} )
] ;
} ;
systemd = {
units = {
2025-03-04 12:29:13 +01:00
"bookwyrm.service" = {
text = ''
[Unit]
After=network.target
[Service]
2025-03-04 12:29:13 +01:00
ExecStart=${bookwyrm}/bin/bookwyrm
WorkingDirectory=/var/lib/bookwyrm
'' ;
} ;
} ;
} ;
}