-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
flake.nix
51 lines (43 loc) · 1.23 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 = "Consequence of allowing autistic people on the internet. Stay mad one-proper-config-structure purists :3";
outputs = inputs @ {nixpkgs, ...}: let
user = import ./user;
forAllSystems = nixpkgs.lib.genAttrs [
"aarch64-linux"
"x86_64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
in {
packages = forAllSystems (
system: let
pkgs = nixpkgs.legacyPackages.${system};
in (user.packages pkgs)
);
formatter = forAllSystems (
system: let
pkgs = nixpkgs.legacyPackages.${system};
in
pkgs.alejandra
);
devShells = forAllSystems (
system: let
pkgs = nixpkgs.legacyPackages.${system};
in {default = user.shell pkgs;}
);
nixosModules =
{
# This module is not meant to be imported by anyone but me
# it's just so I can easily avoid ../../../../../ mess
system = import ./system;
user = user.module;
# place for my home brew modules
}
// import ./modules;
nixosConfigurations = import ./hosts inputs;
};
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
apple-silicon-support.url = "github:tpwrules/nixos-apple-silicon";
};
}