-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
52 lines (44 loc) · 1.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
{
description = "devsheke's nixos configurations";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/8809585e6937d0b07fc066792c8c9abf9c3fe5c4";
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-24.05";
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-darwin = {
url = "github:LnL7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
self,
nixpkgs,
nixpkgs-stable,
nix-darwin,
home-manager,
} @ inputs: let
inherit (self) outputs;
in {
overlays = import ./overlays {inherit inputs;};
darwinConfigurations."macos" = nix-darwin.lib.darwinSystem {
specialArgs = {inherit self inputs outputs;};
modules = [./machines/macos/nix];
};
nixosConfigurations."nixos" = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs outputs;};
modules = [./machines/nixos/nix];
};
homeConfigurations."sheke@macos" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-darwin;
extraSpecialArgs = {inherit inputs outputs;};
modules = [./machines/macos/home-manager];
};
homeConfigurations."sheke@nixos" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = {inherit inputs outputs;};
modules = [./machines/nixos/home-manager];
};
};
}