blob: 94ccef700603e3ab7d6464d7957cb01af90a9792 (
plain)
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
|
{
inputs = {
nixpkgs = {
url = "github:NixOS/nixpkgs/nixos-unstable";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-utils = {
url = "github:numtide/flake-utils";
};
lanzaboote = {
url = "github:nix-community/lanzaboote/v0.4.2";
# Optional but recommended to limit the size of your system closure.
inputs.nixpkgs.follows = "nixpkgs";
};
catppuccin.url = "github:catppuccin/nix";
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
customss = {
url = "github:nea89o/customss";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-index-database = {
url = "github:nix-community/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
vintagestory-nix = {
url = "github:PierreBorine/vintagestory-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
ryze-stackpkgs = {
url = "github:ryze312/stackpkgs";
inputs.nixpkgs.follows = "nixpkgs";
};
fjordlauncher = {
url = "github:unmojang/fjordlauncher";
inputs.nixpkgs.follows = "nixpkgs";
};
agenix.url = "github:ryantm/agenix";
};
outputs =
inputs@{
self,
nixpkgs,
nix-index-database,
lanzaboote,
flake-utils,
customss,
home-manager,
ryze-stackpkgs,
...
}:
let
staticConfig = rec {
homeConfigurations = {
hadante = nixosConfigurations.hadante.config.home-manager.users.nea.home;
};
nixosConfigurations = {
hadante = nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux";
specialArgs = { inherit inputs system; };
modules = [
(inputs: {
nixpkgs.overlays = [
ryze-stackpkgs.overlays.default
customss.overlays.default
(import ./pkgs)
];
})
./srv/hadante/configuration.nix
lanzaboote.nixosModules.lanzaboote
nix-index-database.nixosModules.nix-index
(
{ pkgs, lib, ... }:
{
environment.systemPackages = [
pkgs.sbctl
];
boot.loader.systemd-boot.enable = lib.mkForce false;
boot.lanzaboote = {
enable = true;
pkiBundle = "/var/lib/sbctl";
};
}
)
];
};
alpha-site = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
modules = [
./srv/h-alpha/configuration.nix
inputs.disko.nixosModules.disko
];
};
};
templates = import ./templates;
defaultTemplate = self.templates.basic;
};
metaConfig = flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs {
inherit system;
};
in
{
formatter = pkgs.nixfmt-tree;
}
);
in
(metaConfig // staticConfig);
}
|