aboutsummaryrefslogtreecommitdiff
path: root/modules/flake/home.nix
blob: 2ac2b456320a1a0fb35a7092001b2419dddcb7f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ inputs, self, ... }:

let
  inherit (inputs.nixpkgs) lib;
  import-tree = inputs.import-tree.withLib lib;

  homeModuleFiles = import-tree.leafs (self + /modules/home);
in
{
  imports = [
    inputs.home-manager.flakeModules.home-manager
  ];

  flake.homeModules = {
    default = {
      imports = homeModuleFiles ++ [
        inputs.sops-nix.homeManagerModules.sops
        inputs.nixcord.homeModules.nixcord
        inputs.spicetify-nix.homeManagerModules.spicetify
      ];
    };
  };
}