aboutsummaryrefslogtreecommitdiff
path: root/systems/dilion/flake.nix
blob: e4fc53fa91d5437849ecd19a85a34e12982b2d0d (plain) (blame)
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
{
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";

    my-lib.url = "path:../../flakes/lib";

    monitoring.url = "path:../../flakes/private/monitoring";
    environment.url = "path:../../flakes/private/environment";
    system.url = "path:../../flakes/private/system";

    myuids.url = "path:../../flakes/myuids";
    secrets.url = "path:../../flakes/secrets";
    files-watcher.url = "path:../../flakes/files-watcher";
    loginctl-linger.url = "path:../../flakes/loginctl-linger";
  };
  outputs = inputs@{ self, my-lib, nixpkgs, ...}:
    my-lib.lib.mkColmenaFlake {
      name = "dilion";
      inherit self nixpkgs;
      system = "x86_64-linux";
      targetHost = "176.9.10.233";
      targetUser = "root";
      nixosModules = {
        base = ./base.nix;
        system = inputs.system.nixosModule;
        monitoring = inputs.monitoring.nixosModule;
        environment = inputs.environment.nixosModule;

        myuids = inputs.myuids.nixosModule;
        secrets = inputs.secrets.nixosModule;
        files-watcher = inputs.files-watcher.nixosModule;
        loginctl-linger = inputs.loginctl-linger.nixosModule;
      };
      moduleArgs = {
        nixpkgs = inputs.nixpkgs;
        monitoring = inputs.monitoring;
        environment = inputs.environment;
        pkgs-no-overlay = inputs.nixpkgs.legacyPackages.x86_64-linux;
      };
    };
}