-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathflake.nix
55 lines (47 loc) · 1.34 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
53
54
55
{
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-24.11";
apple-silicon-support.url = "github:tpwrules/nixos-apple-silicon";
zen-browser = {
url = "github:youwen5/zen-browser-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
};
}