treewide: cleanup config with enable options
This commit is contained in:
parent
d469c5fa79
commit
0a387960a2
28 changed files with 420 additions and 358 deletions
|
@ -5,18 +5,15 @@
|
|||
...
|
||||
}:
|
||||
let
|
||||
inherit (config.my)
|
||||
key
|
||||
accent
|
||||
font
|
||||
theme
|
||||
;
|
||||
inherit (theme) color;
|
||||
|
||||
asScript = filename: text: toString (pkgs.writeShellScript filename text);
|
||||
|
||||
cfg = config.my.swayidle;
|
||||
in
|
||||
{
|
||||
services.swayidle = {
|
||||
options.my.swayidle.enable = lib.mkEnableOption { };
|
||||
|
||||
config.services.swayidle = {
|
||||
enable = cfg.enable;
|
||||
timeouts = [
|
||||
{
|
||||
timeout = 360;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue