Compare commits
3 Commits
32e78a24db
...
c485e59c3a
Author | SHA1 | Date | |
---|---|---|---|
c485e59c3a | |||
a19eb2c8de | |||
771d80c70d |
25
README.md
25
README.md
@ -21,23 +21,24 @@ repo is basically in an advanced state of brokenness_
|
|||||||
|
|
||||||
## Running the shell/apps locally
|
## Running the shell/apps locally
|
||||||
|
|
||||||
Eufon is intendfed for phones, but you may prefer to develop on a
|
$ nix-shell
|
||||||
desktop device of some kind, especially if you're changing C code and
|
nix-shell$ kiwmi -c init.lua
|
||||||
have that edit/compile run cycle to go round. You can start the shell
|
|
||||||
locally with
|
|
||||||
|
|
||||||
$ nix-shell --run "kiwmi -c init.lua"
|
This works on desktop or on mobile - Kiwmi is built on wlroots, which
|
||||||
|
will open a window on your existing Wayland or X11 desktop if you're
|
||||||
|
running one.
|
||||||
|
|
||||||
`shell.nix` sets `LUA_PATH` and `LUA_CPATH` settings appropriately -
|
If you're connected over ssh and want to run Kiwmi on the console,
|
||||||
if you want to write a real derivation (I'll get to it eventually)
|
further contortions are required as you don't have the permissions
|
||||||
you'll need to sort that out yourself. Nix generates a wrapper script
|
by default: run this before attempting to start Kiwmi
|
||||||
for the Lua interpreter itself, but it doesn't do the same for kiwmi.
|
|
||||||
|
nix-shell -p seatd --run "sudo -b seatd -u $USER"
|
||||||
|
|
||||||
## Connecting to the repl
|
## Connecting to the repl
|
||||||
|
|
||||||
If you are using the example rc.fnl, it opens a Unix socket to which
|
By default Eufon opens a Unix socket to which you can connect to
|
||||||
you can connect to interact with a Fennel REPL. The `eufonctl`
|
interact with a Fennel REPL. The `eufonctl` script is a wrapper around
|
||||||
script is a wrapper around [socat](http://www.dest-unreach.org/socat/)
|
[socat](http://www.dest-unreach.org/socat/)
|
||||||
|
|
||||||
$ eufonctl $WAYLAND_DISPLAY
|
$ eufonctl $WAYLAND_DISPLAY
|
||||||
|
|
||||||
|
@ -72,7 +72,10 @@ stdenv.mkDerivation {
|
|||||||
export LUA_PATH="`lua -e 'print(package.path)'`"
|
export LUA_PATH="`lua -e 'print(package.path)'`"
|
||||||
export LUA_CPATH="`lua -e 'print(package.cpath)'`"
|
export LUA_CPATH="`lua -e 'print(package.cpath)'`"
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
find . -name kiwmi -prune -o -type l -prune -o -print0 | cpio -0 -v --pass-through $out
|
find . -name kiwmi -prune \
|
||||||
|
-o -type l -prune \
|
||||||
|
-o -name git -prune \
|
||||||
|
-o -print0 | cpio -0 -v --pass-through $out
|
||||||
substitute bin/eufonctl.sh $out/bin/eufonctl \
|
substitute bin/eufonctl.sh $out/bin/eufonctl \
|
||||||
--replace SOCAT=socat SOCAT=${socat}/bin/socat
|
--replace SOCAT=socat SOCAT=${socat}/bin/socat
|
||||||
makeWrapper ${kiwmi}/bin/kiwmi $out/bin/eufon \
|
makeWrapper ${kiwmi}/bin/kiwmi $out/bin/eufon \
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
let eufon = pkgs.callPckage ./default.nix; in
|
let eufon = pkgs.callPackage ./default.nix {}; in
|
||||||
{
|
{
|
||||||
systemd.services."eufon" = {
|
systemd.services."eufon" = {
|
||||||
wants = [
|
wants = [
|
||||||
@ -52,7 +52,7 @@ let eufon = pkgs.callPckage ./default.nix; in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
git
|
git eufon
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.postBootCommands = lib.mkOrder (-1) ''
|
boot.postBootCommands = lib.mkOrder (-1) ''
|
||||||
|
@ -5,11 +5,6 @@ in (p.overrideAttrs (o:{
|
|||||||
shellHook = ''
|
shellHook = ''
|
||||||
export LUA_PATH=`lua -e 'print(package.path)'`
|
export LUA_PATH=`lua -e 'print(package.path)'`
|
||||||
export LUA_CPATH=`lua -e 'print(package.cpath)'`
|
export LUA_CPATH=`lua -e 'print(package.cpath)'`
|
||||||
# this is a shell function mostly so that I can comment it out
|
export EUFON_PATH=`pwd`
|
||||||
# to experiment with starting sway or tinywl or something else
|
|
||||||
# to see how they behave if kiwmi is being weird
|
|
||||||
start_eufon(){
|
|
||||||
kiwmi -V -V -c init.lua;
|
|
||||||
}
|
|
||||||
'';
|
'';
|
||||||
})).override { debug = true; }
|
})).override { debug = true; }
|
||||||
|
Loading…
Reference in New Issue
Block a user