-
-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathflake.nix
More file actions
60 lines (50 loc) · 1.56 KB
/
flake.nix
File metadata and controls
60 lines (50 loc) · 1.56 KB
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
56
57
58
59
60
{
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";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
#apple-silicon-support.url = "github:tpwrules/nixos-apple-silicon";
# https://github.com/tpwrules/nixos-apple-silicon/pull/284#issuecomment-2733107093
apple-silicon-support.url = "github:nix-community/nixos-apple-silicon";
zen-browser = {
url = "github:youwen5/zen-browser-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
};
}