add let/in with aliases
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
{ pkgs, config, lib, ... }:
|
||||
|
||||
let
|
||||
cfg = config.modules.system.syncthing;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
modules.system.syncthing.enable = lib.mkEnableOption "enables syncthing";
|
||||
options.modules.system.syncthing = {
|
||||
enable = lib.mkEnableOption "enables syncthing";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.modules.system.syncthing.enable {
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
user = "blake";
|
||||
|
||||
Reference in New Issue
Block a user