Compare commits
No commits in common. "69d0e632479252c29f1c0913b1ef67cec2561552" and "03963af59e25b8e661e3d5844ff6d52e87e15082" have entirely different histories.
69d0e63247
...
03963af59e
2 changed files with 5 additions and 7 deletions
|
@ -5,7 +5,6 @@
|
||||||
} :
|
} :
|
||||||
|
|
||||||
with builtins ;
|
with builtins ;
|
||||||
with pkgs ;
|
|
||||||
with pkgs . kernelmaft . python ;
|
with pkgs . kernelmaft . python ;
|
||||||
with pkgs . python311Packages ;
|
with pkgs . python311Packages ;
|
||||||
with stdenv ;
|
with stdenv ;
|
||||||
|
@ -100,7 +99,7 @@ mkDerivation {
|
||||||
# Executables
|
# Executables
|
||||||
|
|
||||||
cat <<- EOF > $out/bin/bookwyrm
|
cat <<- EOF > $out/bin/bookwyrm
|
||||||
#!${bash}/bin/sh
|
#!/run/current-system/sw/bin/sh
|
||||||
|
|
||||||
export PYTHONPATH="$out/lib/python3.11/site-packages"
|
export PYTHONPATH="$out/lib/python3.11/site-packages"
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,11 @@
|
||||||
{ pkgs , ... } :
|
{ pkgs , ... } :
|
||||||
|
|
||||||
with pkgs ;
|
|
||||||
with pkgs . kernelmaft ;
|
|
||||||
|
|
||||||
{
|
{
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
overlays = [
|
overlays = [
|
||||||
( self : super :
|
( self : super :
|
||||||
|
with pkgs ;
|
||||||
|
|
||||||
{
|
{
|
||||||
kernelmaft = {
|
kernelmaft = {
|
||||||
|
|
||||||
|
@ -55,13 +54,13 @@ with pkgs . kernelmaft ;
|
||||||
|
|
||||||
systemd = {
|
systemd = {
|
||||||
units = {
|
units = {
|
||||||
"bookwyrm.service" = {
|
bookwyrm = {
|
||||||
text = ''
|
text = ''
|
||||||
[Unit]
|
[Unit]
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=${bookwyrm}/bin/bookwyrm
|
ExecStart=$out/bin/bookwyrm
|
||||||
WorkingDirectory=/var/lib/bookwyrm
|
WorkingDirectory=/var/lib/bookwyrm
|
||||||
'' ;
|
'' ;
|
||||||
} ;
|
} ;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue