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.
24 lines
603 B
Nix
24 lines
603 B
Nix
9 years ago
|
{ config, lib, pkgs, ... }:
|
||
9 years ago
|
|
||
9 years ago
|
let
|
||
9 years ago
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||
9 years ago
|
cfg = config.r6d.config-generator;
|
||
9 years ago
|
computers = config.r6d.computers;
|
||
9 years ago
|
profiles = config.r6d.profiles;
|
||
9 years ago
|
in
|
||
|
|
||
8 years ago
|
# TODO: rc.lua par défaut (système)
|
||
9 years ago
|
mkIf cfg.awesome {
|
||
9 years ago
|
|
||
9 years ago
|
environment.variables = {
|
||
9 years ago
|
# 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}";
|
||
|
};
|
||
|
}
|