From 8a225b47632297c61bb50171ff8416dc96777db8 Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Thu, 21 Nov 2024 09:47:00 +0100 Subject: [PATCH] modules: add a theme enable option --- hosts/vamos/modules/theme.nix | 1 + modules/theme/default.nix | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hosts/vamos/modules/theme.nix b/hosts/vamos/modules/theme.nix index 3576304..79c955f 100644 --- a/hosts/vamos/modules/theme.nix +++ b/hosts/vamos/modules/theme.nix @@ -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="; diff --git a/modules/theme/default.nix b/modules/theme/default.nix index 802b758..56da004 100644 --- a/modules/theme/default.nix +++ b/modules/theme/default.nix @@ -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.