k distinct digits with a given sum

Write digit_combos(k, n) that returns every combination of k distinct digits from 1 to 9 whose sum is n, each as an increasing list. Order of the output does not matter.

digit_combos(3, 7)  ->  [[1, 2, 4]]
digit_combos(3, 9)  ->  [[1, 2, 6], [1, 3, 5], [2, 3, 4]]
digit_combos(4, 1)  ->  []

The point is to practise two constraints at once, size and sum, each of which can prune.

def digit_combos(k, n):
    ...