treewide: use config in literalExpressions (#1517)
Link: https://github.com/nix-community/stylix/pull/1517 Reviewed-by: Matt Sturgeon <matt@sturgeon.me.uk> Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
This commit is contained in:
parent
82323751bc
commit
2b231cdc9b
3 changed files with 8 additions and 5 deletions
|
|
@ -10,7 +10,7 @@ mkTarget {
|
|||
extraOptions.hyprpaper.enable = config.lib.stylix.mkEnableTargetWith {
|
||||
name = "Hyprpaper";
|
||||
autoEnable = config.stylix.image != null;
|
||||
autoEnableExpr = "stylix.image != null";
|
||||
autoEnableExpr = "config.stylix.image != null";
|
||||
};
|
||||
configElements = [
|
||||
(
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ mkTarget {
|
|||
&& pkgs.stdenv.hostPlatform.isLinux;
|
||||
|
||||
autoEnableExpr = ''
|
||||
lib.versionAtLeast home.stateVersion "23.05" && pkgs.stdenv.hostPlatform.isLinux
|
||||
lib.versionAtLeast config.home.stateVersion "23.05" && pkgs.stdenv.hostPlatform.isLinux
|
||||
'';
|
||||
|
||||
extraOptions.useWallpaper = config.lib.stylix.mkEnableWallpaper "Swaylock" true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue