-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
77 lines (67 loc) · 2.35 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
{
description = "Bo's nixos configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/1f4c790f716a7bad8bb000e5cf07e3b5d36a48b8";
utils.url = "github:numtide/flake-utils";
home-manager.url = "github:nix-community/home-manager/433e8de330fd9c157b636f9ccea45e3eeaf69ad2";
nixos-hardware.url = "github:nixos/nixos-hardware/1108c1b8614017c8b52005054fd27a00e4feb51b";
darwin.url = "github:lnl7/nix-darwin/6349b99bc2b96ded34d068a88c7c5ced406b7f7f";
foundry.url = "github:shazow/foundry.nix/monthly";
};
outputs = { self, nixpkgs, utils, home-manager, nixos-hardware, darwin, foundry, ... }@inputs:
{
packages = {
# 64-bit Linux
x86_64-linux = rec {
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; config.allowUnfree = true; };
homeConfigurations."bohendo" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
./nixos/user/home.nix
{
home = {
username = "bohendo";
homeDirectory = "/home/bohendo";
stateVersion = "22.05";
};
}
];
};
nixosConfigurations = {
inherit pkgs system;
asus = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
./system/asus.nix
];
specialArgs = { inherit inputs; };
};
system76 = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
nixos-hardware.nixosModules.system76
./system/system76.nix
];
specialArgs = { inherit inputs; };
};
};
};
# Modern MacBook
aarch-darwin = rec {
system = "aarch-darwin";
pkgs = import nixpkgs { inherit system; config.allowUnfree = true; };
homeConfigurations."bohendo" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [ ./darwin/user/home.nix ];
};
darwinConfigurations = {
darwin = darwin.lib.darwinSystem {
inherit system inputs pkgs;
modules = [ ./system/configuration.nix ];
};
};
};
};
};
}