-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
121 lines (112 loc) · 2.69 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
{
description = "ocfox's flake";
outputs =
inputs@{
self,
nixpkgs,
haumea,
flake-parts,
...
}:
let
username = "ocfox";
home = {
default =
{ pkgs, ... }@args:
haumea.lib.load {
src = ./home;
inputs = args // {
inherit inputs;
};
transformer = haumea.lib.transformers.liftDefault;
};
desktop =
{ pkgs, ... }@args:
haumea.lib.load {
src = ./home-desktop;
inputs = args // {
inherit inputs;
};
transformer = haumea.lib.transformers.liftDefault;
};
};
in
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [
"x86_64-linux"
"aarch64-linux"
"aarch64-darwin"
];
imports = [
./blog
];
perSystem =
{
lib,
system,
pkgs,
...
}:
{
packages = lib.packagesFromDirectoryRecursive {
callPackage = lib.callPackageWith pkgs;
directory = ./pkgs;
};
};
flake = {
overlays.default =
final: prev:
prev.lib.packagesFromDirectoryRecursive {
inherit (prev) callPackage;
directory = ./pkgs;
};
nixosConfigurations = import ./hosts {
inherit
self
nixpkgs
inputs
username
home
;
};
ferrucyon = import ./iso {
inherit
self
nixpkgs
inputs
username
;
};
nixosModules = import ./modules;
};
};
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
minegrub.url = "github:ocfox/minegrub-world-sel-theme";
agenix.url = "github:ryantm/agenix";
factorio-versions.url = "github:ocfox/factorio-versions";
niri.url = "github:sodiboo/niri-flake";
nixos-facter.url = "github:numtide/nixos-facter-modules";
chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable";
jovian-nixos = {
url = "github:Jovian-Experiments/Jovian-NixOS";
inputs.nixpkgs.follows = "nixpkgs";
};
papermod = {
url = "github:adityatelange/hugo-papermod";
flake = false;
};
haumea = {
url = "github:nix-community/haumea";
inputs.nixpkgs.follows = "nixpkgs";
};
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
}