-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
31 lines (24 loc) · 858 Bytes
/
flake.nix
File metadata and controls
31 lines (24 loc) · 858 Bytes
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
{
description = "FiberOS";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
nixos-generators.url = {
url = "github:nix-community/nixos-generators";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, nixos-generators, home-manager, ... };
let supportedSystems = ["x86_64-linux", "aarch64-linux", "riscv64-linux"];
in {
nixosConfigurations.fiberos-x86_64 = mkSystem { system = "x86_64-linux"; kernelSel = zen; };
nixosConfigurations.fiberos-aarch64 = mkSystem { system = "aarch64-linux"; kernelSel = lts; };
nixosConfigurations.fiberos-riscv64 = mkSystem { system = "riscv64-linux"; kernelSel = lts; };
}
mkInstaller = { system }: nixos-generators.nixosGenerate {
inherit system;
};
}