mirror of
https://github.com/nix-community/home-manager
synced 2024-11-10 07:04:17 +00:00
sway: un-extract single-use variable
This commit is contained in:
parent
25479e29d1
commit
76bf779881
1 changed files with 6 additions and 8 deletions
|
@ -331,13 +331,6 @@ let
|
|||
++ [ cfg.extraConfig ]);
|
||||
};
|
||||
|
||||
defaultSwayPackage = pkgs.sway.override {
|
||||
extraSessionCommands = cfg.extraSessionCommands;
|
||||
extraOptions = cfg.extraOptions;
|
||||
withBaseWrapper = cfg.wrapperFeatures.base;
|
||||
withGtkWrapper = cfg.wrapperFeatures.gtk;
|
||||
};
|
||||
|
||||
in {
|
||||
meta.maintainers = with maintainers; [
|
||||
Scrumplex
|
||||
|
@ -357,7 +350,12 @@ in {
|
|||
|
||||
package = mkOption {
|
||||
type = with types; nullOr package;
|
||||
default = defaultSwayPackage;
|
||||
default = pkgs.sway.override {
|
||||
extraSessionCommands = cfg.extraSessionCommands;
|
||||
extraOptions = cfg.extraOptions;
|
||||
withBaseWrapper = cfg.wrapperFeatures.base;
|
||||
withGtkWrapper = cfg.wrapperFeatures.gtk;
|
||||
};
|
||||
defaultText = literalExpression "${pkgs.sway}";
|
||||
description = ''
|
||||
Sway package to use. Will override the options
|
||||
|
|
Loading…
Reference in a new issue