-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
executable file
·137 lines (133 loc) · 4.42 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
{
description = "revol-xut's NixOS and Home Mananger configurations";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
home-manager = {
url = "github:nix-community/home-manager/release-24.05";
inputs.nixpkgs.follows = "nixpkgs";
};
sops-nix = {
url = "github:mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
c3d2-user-module = {
url = "git+https://gitea.c3d2.de/C3D2/nix-user-module.git";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-hardware = {
url = "github:NixOS/nixos-hardware/master";
inputs.nixpkgs.follows = "nixpkgs";
};
fenix = {
url = "github:nix-community/fenix/monthly";
inputs.nixpkgs.follows = "nixpkgs";
};
bahnbingo = {
url = "github:tanneberger/bahn.bingo";
inputs.nixpkgs.follows = "nixpkgs";
};
poettering = {
url = "github:23x/poetti-soundsystem";
flake = false;
};
microvm = {
url = "github:astro/microvm.nix";
inputs.nixpkgs.follows = "nixpkgs";
};
website = {
url = "github:tanneberger/website";
inputs.nixpkgs.follows = "nixpkgs";
};
lf = {
url = "github:icyphy/satellite-attitude-control";
inputs.nixpkgs.follows = "nixpkgs";
};
nixvim = {
url = "github:nix-community/nixvim/nixos-24.05";
inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager";
};
nvim = {
url = "github:NuschtOS/nvim.nix/nixos-24.05";
inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs-stable.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager";
inputs.home-manager-stable.follows = "home-manager";
inputs.nixvim.follows = "nixvim";
inputs.nixvim-stable.follows = "nixvim";
};
};
outputs = { self, nixpkgs, home-manager, sops-nix, nixos-hardware, fenix, c3d2-user-module, bahnbingo, poettering, microvm, website, lf, nvim, ... }@inputs:
let
buildSystem = nixpkgs.lib.nixosSystem;
in
{
packages."aarch64-linux".einstein = self.nixosConfigurations.einstein.config.system.build.sdImage;
#packages."x86_64-linux".schroedinger = self.nixosConfigurations.schroedinger.config.system.build.vm;
nixosConfigurations = {
bothe = buildSystem rec {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
home-manager.nixosModules.home-manager
sops-nix.nixosModules.sops
nixos-hardware.nixosModules.framework-13-7040-amd
c3d2-user-module.nixosModule
./hosts/bothe/configuration.nix
./hosts/bothe/network.nix
./modules/desktop/wayland.nix
./modules/desktop/gnupg.nix
./modules/desktop/base.nix
./modules/server/sops.nix
{
nixpkgs.overlays = [
fenix.overlays.default
];
c3d2.audioStreaming = true;
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = { inherit system inputs; };
home-manager.users.tanneberger = {
imports = [
nvim.homeManagerModules.nvim
./modules/desktop/home.nix
./modules/desktop/neomutt.nix
];
};
}
];
};
schroedinger = buildSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
./hosts/schroedinger/configuration.nix
./modules/server/base.nix
./modules/server/nextcloud.nix
./modules/server/bahnbingo.nix
./modules/server/poettering.nix
./modules/server/website.nix
./modules/server/lf.nix
./modules/server/lasr-web.nix
sops-nix.nixosModules.sops
bahnbingo.nixosModules.default
microvm.nixosModules.host
lf.nixosModules.default
{
nixpkgs.overlays = [
bahnbingo.overlays.default
(_final: _prev: {
poettering = poettering;
})
website.overlays.default
lf.overlays.default
];
microvm.autostart = [
"nextcloud-vm"
];
}
];
};
};
};
}