summary refs log tree commit diff
path: root/flake.nix
blob: 75cafe02a9bceed05bf01d4575973bb1cec84c35 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
  description = "Rory&'s services flake";

  nixConfig = {
    extra-substituters = [
      "https://nix-bincache.rory.gay"
    ];
    extra-trusted-public-keys = [
      "nix-bincache.rory.gay:663PIW8xxgIImxLcsokODWI2PHFWXvzJEfjX6TaIjxQ="
    ];
  };

  inputs = {
    # Different nixpkgs versions
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";

    lix = {
      url = "https://git.lix.systems/lix-project/lix/archive/main.tar.gz";
      flake = false;
    };

    lix-module = {
      url = "https://git.lix.systems/lix-project/nixos-module/archive/main.tar.gz";
      inputs.nixpkgs.follows = "nixpkgs";
      inputs.lix.follows = "lix";
    };

    nom = {
      url = "github:maralorn/nix-output-monitor";
      inputs.nixpkgs.follows = "nixpkgs";
    };

    # Own projects/custom modules
    spacebar = {
      url = "github:spacebarchat/server";
    };
  };

  outputs =
    inputs:
    with inputs;
    {
      nixosConfigurations = {
        Rory-ovh = nixpkgs.lib.nixosSystem {
          system = "x86_64-linux";
          modules = [
            ./host/Rory-ovh/configuration.nix
            #./hardware-configuration.nix

            lix-module.nixosModules.default
          ];
          specialArgs = {
            inherit spacebar;
            inherit (inputs) nom;
          };
        };
      };
    };
}