summaryrefslogtreecommitdiff
path: root/home/default.nix
blob: 841f5639a12061a7da4b4a1190eadb3edb58124b (plain)
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
{
  flakeInputs,
  flakeOutputs,
  metadata,
  ...
}: {
  # Use the flake input pkgs so Home Manager configuration can share overlays
  # etc. with the rest of the configuration.
  home-manager.useGlobalPkgs = true;

  # Pass special arguments from flake.nix further down the chain. I really hate
  # this split module system.
  home-manager.extraSpecialArgs = {inherit flakeInputs flakeOutputs metadata;};

  # OKAY FUCK THIS SHIT. THERE IS ONE USER. IT IS ME. LINUS. I WILL ADD
  # MULTIUSER SUPPORT IF IT EVER BECOMES A REQUIREMENT.
  home-manager.users.linus = {
    imports =
      [
        ./neovim
        ./zsh
        ./git
        ./networking-utils
      ]
      ++ builtins.attrValues flakeOutputs.homeModules;

    xdg.enable = true;
  };
}