summaryrefslogtreecommitdiff
path: root/home/default.nix
blob: 27e137e7fd26dd18df03d8ac069eef63bb6e0360 (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
{
  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; }
        ))."${builtins.currentSystem}";
    in
    inputs.home-manager.lib.homeManagerConfiguration {
      inherit pkgs;

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

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