summaryrefslogtreecommitdiff
path: root/home/default.nix
blob: 1cce9e02931776edfa0e8cad86d2a7ac9140e368 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
  lib,
  inputs,
  outputs,
  self,
  ...
}:
let
  secrets = import ../lib/secrets.nix { inherit self; };
in
{
  flake.homeConfigurations.ebisu =
    let
      username = "ebisu";
      flakeDirectory = ".nixos-config";
      systems = import inputs.systems;

      pkgs =
        ((import ../lib/systems.nix { inherit lib systems; }) (
          system:
          import inputs.nixpkgs {
            inherit system;

            overlays = import ../lib/overlays.nix;
          }
        ))."${builtins.currentSystem}";
    in
    inputs.home-manager.lib.homeManagerConfiguration {
      inherit pkgs;

      modules = with inputs; [
        ./${username}
        chaotic.homeManagerModules.default
        pywal-nix.homeManagerModules.${pkgs.system}.default
        rui.homeManagerModules.${pkgs.system}.default
        sops-nix.homeManagerModules.sops
      ];

      extraSpecialArgs = {
        inherit
          inputs
          outputs
          self
          secrets
          username
          flakeDirectory
          ;
      };
    };
}