summaryrefslogtreecommitdiff
path: root/flake.nix
blob: e9b375b4e2375aaa862fb88799bfb16b47a2f075 (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
{
  inputs = {
    nixpkgs = {
      url = "github:NixOS/nixpkgs/nixos-22.11";
    };
    home-manager = {
      url = "github:nix-community/home-manager/release-22.11";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    nix-darwin = {
      url = "github:LnL7/nix-darwin";
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };

  outputs = { nixpkgs, home-manager, nix-darwin, ... }@inputs:
    {
      darwinConfigurations = {
        muhammed = nix-darwin.lib.darwinSystem {
          inherit inputs;
          system = "aarch64-darwin";
          modules = [
	    { _module.args = { flakeInputs = inputs; }; }
            ./hosts/muhammed/configuration.nix
            home-manager.darwinModules.home-manager
	    ./use-cases/default.nix
          ];
        };
      };

      nixosConfigurations = {
        ahmed = nixpkgs.lib.nixosSystem {
          system = "x86_64-linux";
          modules = [
            { _module.args = { inherit inputs; }; }
            ./hosts/ahmed/configuration.nix
            home-manager.nixosModules.home-manager
	    ./use-cases/default.nix
          ];
        };
      };
    };
}