You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
527 B
Nix
21 lines
527 B
Nix
9 years ago
|
{ 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}";
|
||
|
};
|
||
|
}
|