Refactor modules
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
21
user/configs/stylix.nix
Normal file
21
user/configs/stylix.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.stylix;
|
||||
in
|
||||
{
|
||||
options.stylix = {
|
||||
wallpaper = lib.mkOption {
|
||||
type = lib.types.path;
|
||||
description = "The path to the wallpaper";
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
stylix = {
|
||||
enable = true;
|
||||
base16Scheme = "${pkgs.base16-schemes}/share/themes/da-one-sea.yaml";
|
||||
image = cfg.wallpaper;
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user