summaryrefslogtreecommitdiff
path: root/users/user-common.nix
blob: f43dae14bc64aba4fb3ed02cd168949519c0b02c (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
{
  config,
  inputs,
  ...
}:
{
  # Pass host config to HM (Common config)
  # TODO: Move this somewhere else.
  home-manager = {
    # useUserPackages = true;
    useGlobalPkgs = true;
    backupFileExtension = ".bak";

    sharedModules = [
      (
        { ... }:
        {
          _module.args.hostconfig = config;
          _module.args.inputs = inputs;
        }
      )
      inputs.sops-nix.homeManagerModules.sops
    ];
  };
}