about summary refs log tree commit diff
path: root/flake.nix
blob: 581b53e84015645ab1ac4074ffba84e732715226 (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
45
{
  description = "sefidel's nix flake dotfiles";

  inputs = {
    unstable.url = "github:nixos/nixpkgs/nixos-unstable";
    unstable-small.url = "github:nixos/nixpkgs/nixos-unstable-small";
    nixpkgs-2111.url = "github:nixos/nixpkgs/nixos-21.11";

    darwin.url = "github:LnL7/nix-darwin";
    darwin.inputs.nixpkgs.follows = "unstable";

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

    impermanence.url = "github:nix-community/impermanence";

    neovim.url = "github:neovim/neovim?dir=contrib";
    neovim.inputs.nixpkgs.follows = "unstable";

    rust.url = "github:oxalica/rust-overlay";
    rust.inputs.nixpkgs.follows = "unstable";

    chaotic-nixpkgs.url = "sourcehut:~zachel/chaotic-nixpkgs";
    chaotic-nixpkgs.inputs.nixpkgs.follows = "unstable";
  };

  outputs = { self, ... } @ inputs:
    {

      nixosConfigurations = import ./nixos inputs;

      darwinConfigurations = import ./darwin inputs;

      homeConfigurations = import ./home inputs;

      packages.x86_64-linux = self.lib.nixosConfigurationsAsPackages.x86_64-linux
        // self.lib.homeConfigurationsAsPackages.x86_64-linux;

      colmena = import ./colmena inputs;

      checks = self.packages;

      lib = import ./lib inputs;
    };
}