blob: 969c3c65564b5058e598b211df08bc6b689052dd (
plain)
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
|
{
inputs = {
nixpkgs = {
url = "github:NixOS/nixpkgs/nixos-23.05";
};
home-manager = {
url = "github:nix-community/home-manager/release-23.05";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-darwin = {
url = "github:LnL7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
agenix = {
url = "github:ryantm/agenix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, home-manager, nix-darwin, agenix, ... }@inputs:
let
args = {
inherit self;
flakeInputs = inputs;
metadata = nixpkgs.lib.importTOML ./metadata.toml;
};
in
{
darwinConfigurations = {
muhammed = nix-darwin.lib.darwinSystem {
inherit inputs;
system = "aarch64-darwin";
modules = [
{ _module.args = args; }
home-manager.darwinModules.home-manager
./hosts/muhammed/configuration.nix
./hosts/common.nix
./home
# FIXME: Get the following to work without nix-darwin bithcing about unused NixOS options.
# ./modules
# ./services
];
};
};
nixosConfigurations = {
ahmed = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
{ _module.args = args; }
home-manager.nixosModules.home-manager
agenix.nixosModules.default
./hosts/ahmed/configuration.nix
./hosts/common.nix
./home
./modules
./services
];
};
};
};
}
|