-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
87 lines (79 loc) · 2.42 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
83
84
85
86
87
{
description = "Alexander Nixinton's dotfiles";
inputs = {
nixpkgs = {
url = "github:NixOS/nixpkgs/nixos-unstable";
};
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-darwin = {
url = "github:LnL7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
# this is a quick util a good GitHub samaritan wrote to solve for
# https://github.com/nix-community/home-manager/issues/1341#issuecomment-1791545015
mac-app-util = {
url = "github:hraban/mac-app-util";
};
};
outputs = { self, nixpkgs, home-manager, nix-darwin, mac-app-util, ... } @ inputs: {
# starting point of an x86_64 NixOS installation
nixosConfigurations = {
ninezeroes = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
{
imports = [ ./hosts/ninezeroes/configuration.nix ];
_module.args.self = self;
}
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.rounak = {
imports = [
./hosts/ninezeroes/home.nix
];
_module.args.self = self;
_module.args.host = "ninezeroes";
_module.args.inputs = inputs;
};
}
];
};
};
# starting point of a user-level Nix installation on an aarch64 macOS system
darwinConfigurations = {
trueswiftie = nix-darwin.lib.darwinSystem {
system = "aarch64-darwin";
modules = [
mac-app-util.darwinModules.default
{
imports = [
./hosts/trueswiftie/configuration.nix
./hosts/trueswiftie/software.nix
];
_module.args.self = self;
}
home-manager.darwinModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
users.users.rounak = {
ignoreShellProgramCheck = true;
home = "/Users/rounak";
};
home-manager.users.rounak = {
imports = [
mac-app-util.homeManagerModules.default
./hosts/trueswiftie/home.nix
];
};
}
];
};
};
};
}