-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
66 lines (64 loc) · 2.25 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
{
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.11";
mac-app-util.url = "github:hraban/mac-app-util";
nixd.url = "github:nix-community/nixd";
nixpkgs.url = "github:NixOS/nixpkgs/release-24.11";
tmux-dark-notify.flake = false;
tmux-dark-notify.url = "github:erikw/tmux-dark-notify";
};
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;
config.allowUnfree = true;
# 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;
};
};
nixd = inputs.nixd.packages.${system}.default;
})
];
};
};
in
{
runner = mkHomeManagerConfig {
system = "aarch64-darwin";
module = ./runner.nix;
};
sestrella = mkHomeManagerConfig {
system = "aarch64-darwin";
module = ./sestrella.nix;
};
};
};
}