Everything I take with me from machine to machine.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
loadout/awesome/default.nix

26 lines
514 B

{
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
'';
}