-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
82 lines (72 loc) · 2.23 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
71
72
73
74
75
76
77
78
79
80
81
82
{
description = "Config for my home computers";
outputs = { self, nixpkgs, utils, get-flake, fenix, darwin, ... }@inputs:
let
libOverride = import ./lib;
lib = nixpkgs.lib.extend libOverride;
mkFlake = lib.wrapMkFlake {
inherit (utils.lib) mkFlake;
homeManager = inputs.hm;
};
in
mkFlake
{
inherit self inputs;
supportedSystems = [ "x86_64-linux" "aarch64-darwin" "x86_64-darwin" ];
channelsConfig.allowUnfree = true;
# TODO: Reevaluate the wayland on Nvidia to see if the flickering problem is solved
sharedOverlays = [
self.overlay
fenix.overlays.default
(get-flake ./overlays/flakes/neovim).overlay
(get-flake ./overlays/flakes/fish).overlay
# inputs.nixpkgs-wayland.overlay
(final: prev: {
lib = prev.lib.extend libOverride;
})
];
hosts = {
moonshot = { };
lite-octo-macbook = {
system = "aarch64-darwin";
output = "darwinConfigurations";
builder = darwin.lib.darwinSystem;
};
};
overlay = import ./overlays/extra-pkgs;
overlays = utils.lib.exportOverlays
{
pkgs = self.pkgs;
# Avoid the fenix.overlay deprecation message
inputs = nixpkgs.lib.filterAttrs (name: value: name != "fenix") self.inputs;
};
outputsBuilder = channels:
let
pkgs = channels.nixpkgs;
in
{
packages = utils.lib.exportPackages self.overlays channels;
};
};
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
nixpkgs-wayland = {
url = "github:nix-community/nixpkgs-wayland";
inputs.nixpkgs.follows = "nixpkgs";
};
utils.url = "github:gytis-ivaskevicius/flake-utils-plus";
get-flake.url = "github:ursi/get-flake";
darwin = {
url = "github:lnl7/nix-darwin/master";
inputs.nixpkgs.follows = "nixpkgs";
};
hm = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
fenix = {
url = "github:nix-community/fenix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
}