blob: 8b52d9cefb84cf8365f45207d462c138c1906ce4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
{
pkgs ? (import ../pkgs.nix) {},
}: rec {
cfg = ./.;
wp = ../wallpapers;
dirsLua = pkgs.writeTextDir "dirs.lua" ''
home_dir = os.getenv("HOME").."/"
conf_dir = "${cfg}/"
wp_dir = "${wp}/"
'';
awesome = pkgs.writeScriptBin "awesome" ''
#!${pkgs.bash}/bin/bash
echo "[$(date)] New awesome session starting" > ~/.awesome.log
exec ${pkgs.awesome}/bin/awesome \
-c ${cfg}/rc.lua \
--search ${dirsLua} \
--search ${cfg} \
2>&1 2>>~/.awesome.log
'';
}
|