-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
69 lines (65 loc) · 2.15 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
{
description = ''
Home manager module for an Emacs installation with dotfiles integration &
3rd party deps.
'';
inputs = {
cargo2nix = {
url = "github:cargo2nix/cargo2nix/?ref=release-0.11.0";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
inputs.rust-overlay.follows = "rust-overlay";
};
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:nixos/nixpkgs?ref=release-22.11";
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
emacs29-src = {
url = "github:emacs-mirror/emacs/emacs-29.0.90";
flake = false;
};
emacs-overlay = {
url = "github:nix-community/emacs-overlay";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
rust = {
url = "path:./rust";
inputs.nixpkgs.follows = "nixpkgs";
inputs.rust-overlay.follows = "rust-overlay";
inputs.flake-utils.follows = "flake-utils";
inputs.cargo2nix.follows = "cargo2nix";
inputs.cargo2nix.inputs.rust-overlay.follows = "rust-overlay";
};
emacs-vterm = {
url = "path:./vterm";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
emacs-jinx = {
url = "path:./jinx";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
};
outputs = inputs:
inputs.flake-utils.lib.eachDefaultSystem (system:
let
# Submodules from our inputs are injected into the home manager module
module = import ./posimacs.nix {
rust = inputs.rust.homeConfigurations.${system}.default;
emacs-vterm = inputs.emacs-vterm.homeConfigurations.${system}.default;
emacs-jinx = inputs.emacs-jinx.homeConfigurations.${system}.default;
emacs-overlay = inputs.emacs-overlay;
emacs29-src = inputs.emacs29-src;
};
in rec {
homeConfigurations = {
posimacs = module;
default = homeConfigurations.posimacs;
};
});
}