-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
70 lines (68 loc) · 2.46 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
description = "My Home Manager configuration";
inputs = {
auto-dark-mode-nvim.flake = false;
auto-dark-mode-nvim.url = "github:f-person/auto-dark-mode.nvim";
devenv.url = "github:cachix/devenv";
home-manager-diff.url = "github:pedorich-n/home-manager-diff";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
home-manager.url = "github:nix-community/home-manager/release-24.05";
mac-app-util.url = "github:hraban/mac-app-util";
nixd.url = "github:nix-community/nixd";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
tmux-dark-notify.flake = false;
tmux-dark-notify.url = "github:erikw/tmux-dark-notify";
which-key-nvim.flake = false;
which-key-nvim.url = "github:folke/which-key.nvim";
};
outputs = inputs: {
homeConfigurations =
let
mkHomeManagerConfig = { system, module }:
inputs.home-manager.lib.homeManagerConfiguration {
modules = [
inputs.mac-app-util.homeManagerModules.default
inputs.home-manager-diff.hmModules.default
module
];
pkgs = import inputs.nixpkgs {
inherit system;
# https://nixos.wiki/wiki/Overlays
overlays = [
inputs.devenv.overlays.default
(final: prev: {
tmuxPlugins = prev.tmuxPlugins // {
tmux-dark-notify = prev.tmuxPlugins.mkTmuxPlugin {
pluginName = "tmux-dark-notify";
rtpFilePath = "main.tmux";
src = inputs.tmux-dark-notify;
};
};
vimPlugins = prev.vimPlugins // {
auto-dark-mode-nvim = prev.vimUtils.buildVimPlugin {
name = "auto-dark-mode.nvim";
src = inputs.auto-dark-mode-nvim;
};
which-key-nvim = prev.vimUtils.buildVimPlugin {
name = "which-key.nvim";
src = inputs.which-key-nvim;
};
};
nixd = inputs.nixd.packages.${system}.default;
})
];
};
};
in
{
runner = mkHomeManagerConfig {
system = "x86_64-linux";
module = ./runner.nix;
};
sestrella = mkHomeManagerConfig {
system = "aarch64-darwin";
module = ./sestrella.nix;
};
};
};
}