aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
blob: 2075adff7e987fa54ed82675e34c2188933145e4 (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
{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";

    disko = {
      url = "github:nix-community/disko";
      inputs.nixpkgs.follows = "nixpkgs";
    };

    nixos-facter-modules.url = "github:numtide/nixos-facter-modules";

    lanzaboote = {
      url = "github:nix-community/lanzaboote";
      inputs.nixpkgs.follows = "nixpkgs";
    };

    home-manager = {
      url = "github:nix-community/home-manager";
      inputs.nixpkgs.follows = "nixpkgs";
    };

    hjem = {
      url = "github:feel-co/hjem";
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };

  outputs = inputs: let
    mkSystem = import ./lib/nix-furnace/mkSystem.nix;
  in {
    nixosConfigurations."mercury" = mkSystem {
      inherit inputs;
      hostname = "mercury";
      username = "collin";
      module_types = ["hjem" "nixos"];
    };
    nixosConfigurations."jupiter" = mkSystem {
      inherit inputs;
      hostname = "jupiter";
      username = "collin";
      module_types = ["hjem" "home" "nixos"];
    };
  };
}