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;
|
2016-07-18 12:14:43 +02:00
|
|
|
cfg = config.r6d.config-generator;
|
2016-07-26 15:57:02 +02:00
|
|
|
computers = config.r6d.computers;
|
2016-07-18 12:14:43 +02:00
|
|
|
profiles = config.r6d.profiles;
|
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)
|
2016-08-08 22:58:30 +02:00
|
|
|
mkIf cfg.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}";
|
|
|
|
|
};
|
|
|
|
|
}
|