i3: fix runtime dependencies

Fixes #25633.
This commit is contained in:
Eric Sagnes
2017-05-10 02:42:44 +02:00
committed by Franz Pletz
parent 9c90ff7e7d
commit 92bb3e8b9b
2 changed files with 17 additions and 9 deletions
@@ -36,6 +36,21 @@ in
i3 package to use.
'';
};
extraPackages = mkOption {
type = with types; listOf package;
default = with pkgs; [ dmenu i3status i3lock ];
example = literalExample ''
with pkgs; [
dmenu
i3status
i3lock
]
'';
description = ''
Extra packages to be installed system wide.
'';
};
};
config = mkIf cfg.enable {
@@ -50,7 +65,7 @@ in
waitPID=$!
'';
}];
environment.systemPackages = [ cfg.package ];
environment.systemPackages = [ cfg.package ] ++ cfg.extraPackages;
};
imports = [