~ruther/nixos-config

ref: e6178207be4a360d9b837828fb202539597c6cc7 nixos-config/home/modules/profiles/desktop/dwl/mako-hm-impl.nix -rw-r--r-- 408 bytes
e6178207 — Frantisek Bohacek feat: add emacs-anywhere, some changes 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ config, lib, ... }:

let
  cfg = config.rutherther.programs.mako;
in {
  config = lib.mkIf cfg.enable {
    home.packages = [
      cfg.package # Adds dbus-1/services as well, to the XDG_DATA_DIRS.
    ];

    # xdg.dataFile."dbus-1/services/${builtins.baseNameOf (builtins.unsafeDiscardStringContext cfg.dbusFile)}".source = cfg.dbusFile;

    xdg.configFile."mako/config".source = cfg.configFile;
  };
}
Do not follow this link