-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
60 lines (54 loc) · 1.72 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
{
description = "My NixOS configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-darwin = {
url = "github:LnL7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs@{ self, nixpkgs, neovim-nightly-overlay, nix-darwin, home-manager }:
let
specialArgs = { inherit inputs; };
hmConfiguration = {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = specialArgs;
home-manager.backupFileExtension = "build";
home-manager.users.r4v3n6101 = import ./profiles/personal.nix;
};
in
{
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixpkgs-fmt;
nixosConfigurations.a9 = nixpkgs.lib.nixosSystem rec {
inherit specialArgs;
system = "x86_64-linux";
modules = [
{
nixpkgs = {
overlays = [ neovim-nightly-overlay.overlays.default ];
config.allowUnfree = true;
};
}
./machines/a9.nix
home-manager.nixosModules.home-manager
hmConfiguration
];
};
darwinConfigurations."r4mac" = nix-darwin.lib.darwinSystem rec {
inherit specialArgs;
system = "aarch64-darwin";
modules = [
{ users.users.r4v3n6101.home = "/Users/r4v3n6101"; }
./machines/mac.nix
home-manager.darwinModules.home-manager
hmConfiguration
];
};
};
}