about summary refs log tree commit diff
path: root/nix/mkHomeManagerConfiguration.nix
blob: bcf374a85a28060da71707c6921be0a111aa19d3 (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
inputs@{ self, ... }:
{ system ? "x86_64-linux"
, username ? "fcuny"
, hostname
, stateVersion ? "22.05"
, extraModules ? [ ]
,
}:
inputs.home-manager.lib.homeManagerConfiguration {
  inherit system;
  inherit username;
  inherit stateVersion;

  homeDirectory = "/home/${username}";

  pkgs = import inputs.nixpkgs {
    inherit system;
    config.allowUnfree = true;
    overlays = [
      inputs.emacs-overlay.overlay
      inputs.nur.overlay
      inputs.rust.overlays.default
      (final: prev: { tools = import "${self}/tools" { pkgs = prev; }; })
    ];
  };
  configuration.imports =
    [ "${self}/home" "${self}/hosts/${hostname}/home.nix" ];
}