modules: add a theme enable option

This commit is contained in:
Anthony Rodriguez 2024-11-21 09:47:00 +01:00
parent 64db2313b0
commit 8a225b4763
Signed by: nezia
GPG key ID: EE3BE97C040A86CE
2 changed files with 3 additions and 1 deletions

View file

@ -1,5 +1,6 @@
{pkgs, ...}: {
theme = {
enable = true;
wallpaper = pkgs.fetchurl {
url = "https://raw.githubusercontent.com/NixOS/nixos-artwork/e0cf0eb237dc5baba86661a3572b20a6183c1876/wallpapers/nix-wallpaper-nineish-catppuccin-frappe.png?raw=true";
hash = "sha256-/HAtpGwLxjNfJvX5/4YZfM8jPNStaM3gisK8+ImRmQ4=";

View file

@ -3,11 +3,12 @@
pkgs,
...
}: let
inherit (lib) mkOption;
inherit (lib) mkEnableOption mkOption;
inherit (lib.types) string path package;
in {
imports = [./gtk.nix];
options.theme = {
enable = mkEnableOption "theme";
scheme = mkOption {
description = ''
Name of the tinted-scheming color scheme to use.