déplacement de la définition de la variable awesome
This commit is contained in:
20
activation-manuelle/app-awesome.nix
Normal file
20
activation-manuelle/app-awesome.nix
Normal 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}";
|
||||||
|
};
|
||||||
|
}
|
||||||
10
desktop.nix
10
desktop.nix
@@ -3,6 +3,7 @@
|
|||||||
{
|
{
|
||||||
imports = [ # applications :
|
imports = [ # applications :
|
||||||
# commandées par config-generator
|
# commandées par config-generator
|
||||||
|
./activation-manuelle/app-awesome.nix # pour les profils awesome
|
||||||
./activation-manuelle/app-docker.nix # pour activer docker
|
./activation-manuelle/app-docker.nix # pour activer docker
|
||||||
./activation-manuelle/app-jeux.nix # permettant de jouer ;)
|
./activation-manuelle/app-jeux.nix # permettant de jouer ;)
|
||||||
./activation-manuelle/app-virtualbox.nix # pour exploiter virtualbox
|
./activation-manuelle/app-virtualbox.nix # pour exploiter virtualbox
|
||||||
@@ -50,15 +51,6 @@
|
|||||||
mumble = pkgs.mumble.override { pulseSupport = true; };
|
mumble = pkgs.mumble.override { pulseSupport = true; };
|
||||||
};
|
};
|
||||||
|
|
||||||
# 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")
|
|
||||||
#
|
|
||||||
environment.variables.AWESOME_CONFIG_DIR = "${pkgs.awesome}";
|
|
||||||
|
|
||||||
# Enable the X11 windowing system.
|
# Enable the X11 windowing system.
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user