-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
44 lines (42 loc) · 1.3 KB
/
flake.nix
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
{
description = "Home Manager configuration of jayson";
inputs = {
# Specify the source of Home Manager and Nixpkgs.
nixpkgs.url = "nixpkgs/nixos-23.11";
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager/release-23.11";
inputs.nixpkgs.follows = "nixpkgs";
};
kickstart-nvim = {
flake = true;
url = "github:jaycle/kickstart-nix.nvim";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
wezterm.url = "github:wez/wezterm?dir=nix";
};
outputs = inputs@{ nixpkgs, nixpkgs-unstable, home-manager, ... }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
overlay-unstable = final: prev: {
unstable = import nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
};
};
in {
formatter.${system} = nixpkgs.legacyPackages.${system}.nixfmt;
homeConfigurations."jayson" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
({ config, pkgs, ... }: {
nixpkgs.overlays =
[ inputs.kickstart-nvim.overlays.default overlay-unstable ];
})
./home.nix
];
extraSpecialArgs = { inherit inputs; };
};
};
}