2016-07-18 12:14:43 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
2016-07-26 15:57:02 +02:00
|
|
|
|
2016-07-18 12:14:43 +02:00
|
|
|
let
|
2016-08-12 12:46:36 +02:00
|
|
|
inherit (lib) mkIf mkMerge mkThenElse;
|
2017-04-24 23:22:11 +02:00
|
|
|
annuaire = config.r6d.machines;
|
2021-05-06 23:50:07 +02:00
|
|
|
currentMachine = annuaire."${config.networking.fqdn}";
|
2017-05-31 00:23:10 +02:00
|
|
|
flags = currentMachine.configurationFlags;
|
2016-08-08 22:58:30 +02:00
|
|
|
in
|
|
|
|
|
|
2017-03-01 23:58:43 +01:00
|
|
|
# TODO: rc.lua par défaut (système)
|
2017-04-27 22:06:12 +02:00
|
|
|
mkIf flags.awesome {
|
2016-07-18 12:14:43 +02:00
|
|
|
|
2016-07-26 15:57:02 +02:00
|
|
|
environment.variables = {
|
2016-07-18 12:14:43 +02:00
|
|
|
# Export the current path for the awesome derivation, useful for users rc.lua
|
|
|
|
|
# Example usage in rc.lua :
|
|
|
|
|
#
|
|
|
|
|
# config = {}
|
|
|
|
|
# config.dir = os.getenv("AWESOME_CONFIG_DIR")
|
|
|
|
|
# beautiful.init(config.dir .. "/share/awesome//themes/zenburn/theme.lua")
|
|
|
|
|
#
|
|
|
|
|
AWESOME_CONFIG_DIR = "${pkgs.awesome}";
|
2017-07-05 22:50:26 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
environment.etc."xdg/awesome/rc.lua".text = builtins.readFile ./../public/config-awesome-4-rc.lua;
|
2016-07-18 12:14:43 +02:00
|
|
|
}
|