treewide: cleanup config with enable options
This commit is contained in:
parent
d469c5fa79
commit
0a387960a2
28 changed files with 420 additions and 358 deletions
|
@ -1,20 +1,14 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
inherit (config.my)
|
||||
key
|
||||
accent
|
||||
font
|
||||
theme
|
||||
;
|
||||
inherit (config.my) accent font theme;
|
||||
inherit (theme) color;
|
||||
|
||||
cfg = config.my.swaylock;
|
||||
in
|
||||
{
|
||||
programs.swaylock.settings = {
|
||||
options.my.swaylock.enable = lib.mkEnableOption { };
|
||||
|
||||
config.programs.swaylock.settings = lib.mkIf cfg.enable {
|
||||
image = toString theme.background;
|
||||
font = font.interface;
|
||||
font-size = font.size.medium;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue