-
Notifications
You must be signed in to change notification settings - Fork 133
/
flake.nix
35 lines (33 loc) · 978 Bytes
/
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
{
description = "NixOS + standalone home-manager config flakes to get you started!";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
};
outputs = {nixpkgs, ...}: let
forAllSystems = nixpkgs.lib.genAttrs [
"aarch64-linux"
"i686-linux"
"x86_64-linux"
"aarch64-darwin"
"x86_64-darwin"
];
in {
templates = {
minimal = {
description = ''
Minimal flake - contains only the configs.
Contains the bare minimum to migrate your existing legacy configs to flakes.
'';
path = ./minimal;
};
standard = {
description = ''
Standard flake - augmented with boilerplate for custom packages, overlays, and reusable modules.
Perfect migration path for when you want to dive a little deeper.
'';
path = ./standard;
};
};
formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra);
};
}