system/modules/home-manager/services/wired/default.nix

17 lines
383 B
Nix

{ config, pkgs, lib, ... }:
let
cfg = config.local.services.wired;
themeCfg = config.local.themes."${config.local.theme.name}";
in
{
options.local.services.wired.enable = lib.mkEnableOption "wired";
config = lib.mkIf cfg.enable {
services.wired = {
enable = true;
config = pkgs.substituteAll ({ src = ./wired.ron; } // themeCfg.notification);
};
};
}