about summary refs log tree commit diff
path: root/flake.nix
blob: a5026c34f3f023c71a8170f6b1f612fc3e3bc971 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
  description = "sefidel's nix flake dotfiles";

  inputs = {
    unstable.url = "github:nixos/nixpkgs/nixos-unstable";
    unstable-small.url = "github:nixos/nixpkgs/nixos-unstable-small";
    nixpkgs-master.url = "github:nixos/nixpkgs/master";
    nixpkgs-2311.url = "github:nixos/nixpkgs/nixos-23.11";

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

    colmena.url = "github:zhaofengli/colmena";
    colmena.inputs.nixpkgs.follows = "unstable";

    nur.url = "github:nix-community/NUR";

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

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

    lanzaboote.url = "github:nix-community/lanzaboote/v0.4.1";
    lanzaboote.inputs.nixpkgs.follows = "unstable";

    sops-nix.url = "github:Mic92/sops-nix";
    sops-nix.inputs.nixpkgs.follows = "unstable";

    madness-ld.url = "github:antithesishq/madness";

    flake-compat.url = "github:edolstra/flake-compat";
    flake-compat.flake = false;

    hydra.url = "github:NixOS/hydra";
    hydra.inputs.nixpkgs.follows = "unstable";

    attic.url = "github:zhaofengli/attic";
    attic.inputs.nixpkgs.follows = "unstable";

    neovim-nightly.url = "github:nix-community/neovim-nightly-overlay";
    neovim-nightly.inputs.nixpkgs.follows = "unstable";

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

    nix-gaming.url = "github:fufexan/nix-gaming";
    nix-gaming.inputs.nixpkgs.follows = "unstable";
  };

  outputs = { self, unstable, ... } @ inputs:
    let
      lib = unstable.lib.extend
        (self: super: { my = import ./lib { inherit inputs; lib = self; }; });
    in
    {
      lib = lib.my;

      nixosConfigurations = import ./nixos inputs;

      homeConfigurations = import ./home inputs;

      colmena = self.lib.mkColmenaFromNixOSConfigurations self.nixosConfigurations;

      hydraJobs = self.lib.mkHydraFromNixOSConfigurations self.nixosConfigurations;
        # // self.lib.mkHydraFromHomeConfigurations self.homeConfigurations;
    };
}