summaryrefslogtreecommitdiff
path: root/hm/env/otter.nix
blob: 966bbb78d24db5cc422c3cfc83f313732e783af4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
  inputs,
  config,
  lib,
  ...
}:
let
  cfg = config.hm.env.otter;
in
{
  imports = [ inputs.otter-launcher.homeModules.otter-launcher ];

  options.hm.env.otter.enable = lib.mkEnableOption "enables otter launcher";
  config = lib.mkIf cfg.enable {
    programs.otter-launcher = {
      enable = true;
    };
    xdg.configFile."otter-launcher/config.toml".source = lib.mkForce (
      config.lib.file.mkOutOfStoreSymlink "../dotfiles/otter/config.toml"
    );
  };
}