-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
60 lines (55 loc) · 1.67 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
{
description = "kciredor's MacOS and Linux Nix config";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
nix-darwin.url = "github:LnL7/nix-darwin";
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = {
self,
nixpkgs,
home-manager,
nix-darwin,
...
} @ inputs: let
inherit (self) outputs;
in {
# Bootstrap using `bootstrap/macos.sh`.
darwinConfigurations = {
"macos" = nix-darwin.lib.darwinSystem {
pkgs = nixpkgs.legacyPackages.aarch64-darwin;
specialArgs = { inherit inputs outputs; };
modules = [
./hosts/macos.nix
];
};
};
# Bootstrap using `bootstrap/linux.sh`.
homeConfigurations = {
"kciredor@rs-mbp14" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.aarch64-darwin;
extraSpecialArgs = { inherit inputs outputs; };
modules = [
./hosts/kciredor-rs-mbp14.nix
];
};
"kciredor@ubuntu" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.aarch64-linux;
extraSpecialArgs = { inherit inputs outputs; };
modules = [
./hosts/kciredor-ubuntu.nix
];
};
# Bootstrap with env vars: NIX_FIRST_BUILD_UID=2000, NIX_BUILD_GROUP_ID=2000.
"kciredor@cloudtop" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = { inherit inputs outputs; };
modules = [
./hosts/kciredor-cloudtop.nix
];
};
};
};
}