déplacement de la définition de la variable awesome

This commit is contained in:
2016-07-18 12:14:43 +02:00
parent ba9cdb7518
commit 7e9a8131a3
2 changed files with 21 additions and 9 deletions

View File

@@ -0,0 +1,20 @@
{ config, lib, pkgs, ... }:
let
inherit (lib) mkIf;
cfg = config.r6d.config-generator;
profiles = config.r6d.profiles;
in {
imports = [
];
environment.variables = mkIf cfg.awesome {
# 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}";
};
}