/
flake.nix
48 lines (42 loc) · 1.41 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
{
description = "Brian's Dotfiles";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/release-21.05";
nixos-hardware.url = "github:NixOS/nixos-hardware";
home-manager.url = "github:nix-community/home-manager/release-21.05";
tmux = {
url = "github:tmux/tmux";
flake = false;
};
};
outputs = inputs: {
overlay = final: prev: {
tmux = prev.tmux.overrideAttrs (attrs:
attrs // {
src = inputs.tmux;
# macOS does some weird stuff with locales and character widths.
# Practically, that means that without extra support tmux will
# behave weirdly around multi-byte characters like emoji. Enabling
# utf8proc support should backfill the right tables so that tmux
# can get the correct character widths.
buildInputs = attrs.buildInputs ++ [ prev.utf8proc ];
configureFlags = attrs.configureFlags ++ [ "--enable-utf8proc" ];
}
);
};
nixosConfigurations.torch = inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
(import ./machines/torch inputs)
inputs.home-manager.nixosModules.home-manager
];
};
nixosConfigurations.vbox-dev = inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
(import ./machines/vbox-dev inputs)
inputs.home-manager.nixosModules.home-manager
];
};
};
}