]> git.immae.eu Git - perso/Immae/Config/Nix.git/blob - systems/quatresaisons/flake.nix
Rename php forward-ports to ports
[perso/Immae/Config/Nix.git] / systems / quatresaisons / flake.nix
1 {
2 inputs = {
3 nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
4
5 my-lib.url = "path:../../flakes/lib";
6
7 monitoring.url = "path:../../flakes/private/monitoring";
8 environment.url = "path:../../flakes/private/environment";
9 ports.url = "path:../../flakes/private/ports";
10 system.url = "path:../../flakes/private/system";
11
12 myuids.url = "path:../../flakes/myuids";
13 secrets.url = "path:../../flakes/secrets";
14 files-watcher.url = "path:../../flakes/files-watcher";
15 multi-apache-container.url = "path:../../flakes/multi-apache-container";
16
17 landing-page = {
18 url = "https://github.com/bastienwirtz/homer.git";
19 ref = "main";
20 type = "git";
21 flake = false;
22 };
23 };
24 outputs = inputs@{ self, my-lib, nixpkgs, ...}:
25 my-lib.lib.mkColmenaFlake {
26 name = "quatresaisons";
27 inherit self nixpkgs;
28 system = "x86_64-linux";
29 targetHost = "144.76.76.162";
30 targetUser = "root";
31 nixosModules = {
32 base = { secrets, ... }: { imports = [ secrets.nixosModules.users-config-quatresaisons ]; };
33 system = inputs.system.nixosModule;
34 monitoring = inputs.monitoring.nixosModule;
35 environment = inputs.environment.nixosModule;
36
37 myuids = inputs.myuids.nixosModule;
38 secrets = inputs.secrets.nixosModule;
39 files-watcher = inputs.files-watcher.nixosModule;
40 multi-apache-container = inputs.multi-apache-container.nixosModule;
41 };
42 moduleArgs = {
43 monitoring = inputs.monitoring;
44 ports = inputs.ports;
45 landing-page = inputs.landing-page;
46 pkgs-no-overlay = inputs.nixpkgs.legacyPackages.x86_64-linux;
47 };
48 };
49 }