mirror of
https://github.com/youwen5/nixos.git
synced 2025-01-17 20:52:09 -08:00
feat: configure wallpaper, polarity, colorscheme options
Some checks are pending
Check flake / check (push) Waiting to run
Some checks are pending
Check flake / check (push) Waiting to run
This commit is contained in:
parent
e9c6c54ee1
commit
6590279a68
1 changed files with 30 additions and 6 deletions
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
inputs,
|
|
||||||
pkgs,
|
pkgs,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
|
@ -24,16 +23,41 @@ in
|
||||||
Whether to enable plymouth and sane defaults.
|
Whether to enable plymouth and sane defaults.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
wallpaper = lib.mkOption {
|
||||||
|
type = lib.types.path;
|
||||||
|
default = "../../../hm/modules/common/shellenv/fastfetch/nixos-logo.png";
|
||||||
|
description = ''
|
||||||
|
Path to wallpaper to set as background and generate system colorscehme from.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
polarity = lib.mkOption {
|
||||||
|
type = lib.types.nullOr (
|
||||||
|
lib.types.enum [
|
||||||
|
"light"
|
||||||
|
"dark"
|
||||||
|
]
|
||||||
|
);
|
||||||
|
default = null;
|
||||||
|
description = ''
|
||||||
|
Whether to force colorscheme to be generated as light or dark theme. Set to null to automatically determine.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
base16Scheme = lib.mkOption {
|
||||||
|
type = lib.types.nullOr lib.types.path;
|
||||||
|
default = null;
|
||||||
|
description = ''
|
||||||
|
Base 16 colorscheme from base16-schemes to override wallpaper generated colorscheme with. Set to null to use wallpaper generated scheme.
|
||||||
|
Example: ''${pkgs.base16-schemes}/share/themes/rose-pine.yaml
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
stylix = {
|
stylix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
image = "${inputs.wallpapers}/aesthetic/afterglow_city_skyline_at_night.png";
|
image = lib.mkIf (cfg.wallpaper != null) cfg.wallpaper;
|
||||||
# image = "${inputs.wallpapers}/aesthetic/red_deadly_sun.jpg";
|
base16Scheme = lib.mkIf (cfg.base16Scheme != null) cfg.base16Scheme;
|
||||||
# image = "${inputs.wallpapers}/aesthetic/afterglow_sand_dunes.jpg";
|
polarity = lib.mkIf (cfg.polarity != null) cfg.polarity;
|
||||||
base16Scheme = "${pkgs.base16-schemes}/share/themes/rose-pine.yaml";
|
|
||||||
polarity = "dark";
|
|
||||||
|
|
||||||
fonts = {
|
fonts = {
|
||||||
serif = {
|
serif = {
|
||||||
|
|
Loading…
Reference in a new issue