-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
55 lines (53 loc) · 1.73 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
{
description = "NixOS configuration";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
declCachix.url = "github:jonascarpay/declarative-cachix";
hackclub-overlay.url = "github:hackclub/nix-overlay";
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
fenix.url = "github:nix-community/fenix";
};
outputs = { self, nixpkgs, home-manager
, declCachix
, hackclub-overlay
, neovim-nightly-overlay
, fenix }: {
homeConfigurations = {
anirudh = home-manager.lib.homeManagerConfiguration rec {
pkgs = nixpkgs.legacyPackages.x86_64-darwin;
modules = [
declCachix.homeManagerModules.declarative-cachix-experimental
./config/home.nix
./config/macos.nix
{
nixpkgs.overlays = [
# nix-community/neovim-nightly-overlay#176
# neovim-nightly-overlay.overlay
hackclub-overlay.overlay.x86_64-darwin
(import ./overlay.nix)
];
}
{
home = {
username = "anirudh";
homeDirectory = "/Users/anirudh";
stateVersion = "21.05";
};
}
];
extraSpecialArgs = {
fenix = fenix.packages.x86_64-darwin;
nixpkgs-rev = let
lockFile = builtins.fromJSON (builtins.readFile ./flake.lock);
rootNode = lockFile.nodes.${lockFile.root};
nixpkgsNode = lockFile.nodes.${rootNode.inputs.nixpkgs};
in nixpkgsNode.locked.rev;
};
};
};
};
}