summaryrefslogtreecommitdiff
path: root/common/programs/default.nix
blob: ccca727d44979e9905c2e5b8499cc26924cbc6a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ pkgs, ... }:
let
  programs = [
    "hyprland"
    "neovim"
    "zsh"
    "ydotool"
  ];
in
builtins.listToAttrs (
  map (n: {
    name = n;
    value =
      if builtins.pathExists ./${n}.nix then
        (import ./${n}.nix { inherit pkgs; })
      else
        { enable = true; };
  }) programs
)