greenhouse

kore

my public infrastructure monorepo

git clone [email protected]:kore.git

kore / flake.nix33 lines · 963B · raw

1{
2  inputs = {
3    # system
4    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
5    impermanence.url = "github:nix-community/impermanence";
6
7    nixos-wsl.url = "github:nix-community/NixOS-WSL";
8    nixos-wsl.inputs.nixpkgs.follows = "nixpkgs";
9
10    disko.url = "github:nix-community/disko";
11    disko.inputs.nixpkgs.follows = "nixpkgs";
12    
13    home-manager.url = "sourcehut:~rycee/home-manager";
14    home-manager.inputs.nixpkgs.follows = "nixpkgs";
15
16    greenhouse.url = "git+ssh://[email protected]/greenhouse";
17    greenhouse.flake = false;
18  };
19
20  outputs = inputs@{ self, nixpkgs, ... }:
21    let
22      inherit (self) outputs;
23      inherit (nixpkgs) lib;
24      kore = lib.importJSON ./kore.json;
25    in {
26      inherit kore;
27
28      nixosConfigurations = import ./nixos/hosts { inherit inputs outputs lib kore; };
29      homeModules = import ./home/profiles { inherit kore; };
30
31      overlays = import ./overlays { inherit inputs outputs; };
32    };
33}