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