commit 08f14e4962a04e8e1d1233d7bc78c36ff5afa599 parent af5431b9696c96b377b1208dd896aaf2ee9040a9 Author: Francesco Saccone <francesco@francescosaccone.com> Date: Mon, 14 Apr 2025 16:48:51 +0200 refactor: define default 'colors' inline Signed-off-by: Francesco Saccone <francesco@francescosaccone.com> Diffstat:
D | modules/home-manager/sway/colors.nix | | | 11 | ----------- |
M | modules/home-manager/sway/default.nix | | | 8 | +++++++- |
2 files changed, 7 insertions(+), 12 deletions(-)
diff --git a/modules/home-manager/sway/colors.nix b/modules/home-manager/sway/colors.nix @@ -1,11 +0,0 @@ -{ - # This is the color to use for the status bar, it should be continous with - # the background image. - background = "#00112b"; - - foreground = "#d5e5ff"; - - darkRed = "#c85151"; - green = "#80ff80"; - red = "#da8b8b"; -} diff --git a/modules/home-manager/sway/default.nix b/modules/home-manager/sway/default.nix @@ -26,7 +26,13 @@ }; colors = lib.mkOption { description = "The hex colors, in '#rrggbb[aa]' format."; - default = import ./colors.nix; + default = { + background = "#00112b"; + foreground = "#d5e5ff"; + darkRed = "#c85151"; + green = "#80ff80"; + red = "#da8b8b"; + }; type = lib.types.submodule { options = { background = lib.mkOption {