rix101/flake.nix

128 lines
2.8 KiB
Nix
Raw Normal View History

{
description = "reo101's NixOS, nix-on-droid and nix-darwin configs";
inputs = {
# Nixpkgs
nixpkgs = {
url = "github:nixos/nixpkgs/nixos-unstable";
};
# Nix on Droid
nix-on-droid = {
url = "github:t184256/nix-on-droid/release-22.11";
# url = "github:t184256/nix-on-droid/master";
inputs.nixpkgs.follows = "nixpkgs";
inputs.home-manager.follows = "home-manager";
};
# Nix Darwin
nix-darwin = {
url = "github:lnl7/nix-darwin/master";
inputs.nixpkgs.follows = "nixpkgs";
};
# Home Manager
home-manager = {
url = "github:nix-community/home-manager/release-22.11";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-03-23 07:17:20 +01:00
# Nix User Repository
nur = {
url = "github:nix-community/NUR";
};
hardware = {
url = "github:nixos/nixos-hardware";
};
nix-colors = {
url = "github:misterio77/nix-colors";
};
neovim-nightly-overlay = {
url = "github:nix-community/neovim-nightly-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
zig-overlay = {
url = "github:mitchellh/zig-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
2022-11-21 14:36:23 +01:00
zls-overlay = {
url = "github:zigtools/zls";
inputs.nixpkgs.follows = "nixpkgs";
};
wired = {
url = "github:Toqozz/wired-notify";
inputs.nixpkgs.follows = "nixpkgs";
};
};
2022-11-25 13:53:13 +01:00
outputs =
{ self
, nixpkgs
, nix-on-droid
, nix-darwin
, home-manager
, hardware
, nix-colors
2022-11-25 13:53:13 +01:00
, neovim-nightly-overlay
, zig-overlay
, zls-overlay
, wired
2022-11-25 13:53:13 +01:00
, ...
} @ inputs:
let
inherit (self) outputs;
in
2023-02-17 01:42:11 +01:00
with (import ./lib { inherit inputs outputs; }); rec {
# Packages (`nix build`)
packages = forEachPkgs (pkgs:
import ./pkgs { inherit pkgs; }
);
# Apps (`nix run`)
2023-02-19 12:54:02 +01:00
apps = forEachPkgs (pkgs:
import ./apps { inherit pkgs; }
);
# Dev Shells (`nix develop`)
devShells = forEachPkgs (pkgs:
import ./shells { inherit pkgs; }
);
# Formatter
formatter = forEachPkgs (pkgs:
pkgs.nixpkgs-fmt
);
# Templates
templates = import ./templates { inherit inputs outputs; };
# Overlays
overlays = import ./overlays { inherit inputs outputs; };
# Machines
inherit machines;
inherit homeManagerMachines;
inherit nixDarwinMachines;
inherit nixOnDroidMachines;
inherit nixosMachines;
# Modules
inherit nixosModules;
inherit nixOnDroidModules;
inherit nixDarwinModules;
inherit homeManagerModules;
# Configurations
nixosConfigurations = autoNixosConfigurations;
nixOnDroidConfigurations = autoNixOnDroidConfigurations;
darwinConfigurations = autoDarwinConfigurations;
homeConfigurations = autoHomeConfigurations;
};
}