treewide: cleanup config with enable options

This commit is contained in:
Leonardo Eugênio 2025-02-20 22:01:03 -03:00
parent d469c5fa79
commit 0a387960a2
28 changed files with 420 additions and 358 deletions

View file

@ -1,20 +1,12 @@
{
config,
pkgs,
lib,
...
}:
{ config, lib, ... }:
let
inherit (config.my)
key
accent
font
theme
;
inherit (theme) color;
cfg = config.my.kanshi;
in
{
services.kanshi = {
options.my.kanshi.enable = lib.mkEnableOption { };
config.services.kanshi = lib.mkIf cfg.enable {
enable = true;
settings = [
{
profile = {