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

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

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

    flake-utils.url = "github:numtide/flake-utils";
    flake-utils.inputs.nixpkgs.follows = "nixpkgs";

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

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

    # https://github.com/NixOS/nix/pull/5342
    chaotic-nixpkgs.url = "git+https://git.sr.ht/~boppy/chaotic-nixpkgs?ref=main";
    chaotic-nixpkgs.inputs.nixpkgs.follows = "nixpkgs";

    phocus = { url = "git+https://git.sr.ht/~boppy/phocus"; flake = false; };
    wallpapers = { url = "git+https://git.sr.ht/~boppy/wall?ref=main"; flake = false; };
  };

  outputs = { self, nixpkgs, flake-utils, sops-nix, ... } @ inputs:
    {

      nixosConfigurations = import ./nixos inputs;

      homeConfigurations = import ./home inputs;

      packages.x86_64-linux = (import ./packages inputs)
        // self.lib.nixosConfigurationsAsPackages.x86_64-linux
        // self.lib.homeConfigurationsAsPackages.x86_64-linux;

      checks = self.packages;

      lib = import ./lib inputs;
    };
}