-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
51 lines (51 loc) · 1.5 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
{
description = "nix configuration of yanosea";
inputs = {
# nixpkgs
nixpkgs = { url = "github:nixos/nixpkgs/nixos-unstable"; };
nixpkgs-stable = { url = "github:nixos/nixpkgs/nixos-24.05"; };
# nixos hardware
nixos-hardware = { url = "github:NixOS/nixos-hardware/master"; };
# nixos wsl
nixos-wsl = {
url = "github:nix-community/NixOS-WSL";
inputs = { nixpkgs = { follows = "nixpkgs"; }; };
};
# darwin
nixpkgs-darwin = { url = "github:NixOS/nixpkgs/nixpkgs-24.05-darwin"; };
darwin = {
url = "github:lnl7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs-darwin";
};
# home-manager
home-manager = {
url = "github:nix-community/home-manager";
inputs = { nixpkgs = { follows = "nixpkgs"; }; };
};
# rust toolchain
fenix = { url = "github:nix-community/fenix"; };
# xremap
xremap = { url = "github:xremap/nix-flake"; };
# hyprland
hyprland = { url = "github:hyprwm/Hyprland"; };
# nur
nekowinston-nur = { url = "github:nekowinston/nur"; };
};
outputs = inputs:
let
allSystems = [
# linux
"x86_64-linux"
# darwin (arm)
"aarch64-darwin"
];
forAllSystems = inputs.nixpkgs.lib.genAttrs allSystems;
in {
# nixos
nixosConfigurations = (import ./hosts inputs).nixos;
# darwin
darwinConfigurations = (import ./hosts inputs).darwin;
# home-manager
homeConfigurations = (import ./hosts inputs).home-manager;
};
}