2022-11-20 16:23:58 +01:00
|
|
|
{
|
2022-11-27 01:19:57 +01:00
|
|
|
description = "reo101's NixOS, nix-on-droid and nix-darwin configs";
|
2022-11-20 16:23:58 +01:00
|
|
|
|
|
|
|
inputs = {
|
|
|
|
# Nixpkgs
|
|
|
|
nixpkgs = {
|
|
|
|
url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
};
|
|
|
|
|
|
|
|
# Nix on Droid
|
|
|
|
nix-on-droid = {
|
2022-12-04 20:55:48 +01:00
|
|
|
url = "github:t184256/nix-on-droid/release-22.11";
|
|
|
|
# url = "github:t184256/nix-on-droid/master";
|
2022-11-20 16:23:58 +01:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
inputs.home-manager.follows = "home-manager";
|
|
|
|
};
|
|
|
|
|
2022-11-22 22:36:10 +01:00
|
|
|
# Nix Darwin
|
|
|
|
nix-darwin = {
|
|
|
|
url = "github:lnl7/nix-darwin/master";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2022-11-20 16:23:58 +01:00
|
|
|
# Home Manager
|
|
|
|
home-manager = {
|
2022-12-04 20:55:48 +01:00
|
|
|
url = "github:nix-community/home-manager/release-22.11";
|
2022-11-20 16:23:58 +01:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2023-02-17 01:44:16 +01:00
|
|
|
hardware = {
|
|
|
|
url = "github:nixos/nixos-hardware";
|
|
|
|
};
|
2022-11-20 16:23:58 +01:00
|
|
|
|
2023-02-17 01:44:16 +01:00
|
|
|
nix-colors = {
|
|
|
|
url = "github:misterio77/nix-colors";
|
|
|
|
};
|
2022-11-20 16:23:58 +01:00
|
|
|
|
|
|
|
neovim-nightly-overlay = {
|
|
|
|
url = "github:nix-community/neovim-nightly-overlay";
|
2023-02-07 03:03:03 +01:00
|
|
|
# inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
inputs.nixpkgs.url = "github:nixos/nixpkgs?rev=fad51abd42ca17a60fc1d4cb9382e2d79ae31836";
|
2022-11-20 16:23:58 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
2023-02-12 00:32:13 +01:00
|
|
|
|
|
|
|
wired = {
|
|
|
|
url = "github:Toqozz/wired-notify";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2022-11-20 16:23:58 +01:00
|
|
|
};
|
|
|
|
|
2022-11-25 13:53:13 +01:00
|
|
|
outputs =
|
|
|
|
{ self
|
|
|
|
, nixpkgs
|
|
|
|
, nix-on-droid
|
|
|
|
, nix-darwin
|
|
|
|
, home-manager
|
2023-02-17 01:44:16 +01:00
|
|
|
, hardware
|
|
|
|
, nix-colors
|
2022-11-25 13:53:13 +01:00
|
|
|
, neovim-nightly-overlay
|
|
|
|
, zig-overlay
|
|
|
|
, zls-overlay
|
2023-02-12 00:32:13 +01:00
|
|
|
, wired
|
2022-11-25 13:53:13 +01:00
|
|
|
, ...
|
|
|
|
} @ inputs:
|
2022-11-20 16:23:58 +01:00
|
|
|
let
|
2022-11-21 08:52:42 +01:00
|
|
|
inherit (self) outputs;
|
2022-11-20 16:23:58 +01:00
|
|
|
in
|
2023-02-17 01:42:11 +01:00
|
|
|
with (import ./lib { inherit inputs outputs; }); rec {
|
2023-02-12 00:32:13 +01:00
|
|
|
# Packages (`nix build`)
|
|
|
|
packages = forEachPkgs (pkgs:
|
|
|
|
import ./pkgs { inherit pkgs; }
|
2022-11-21 08:53:32 +01:00
|
|
|
);
|
2022-11-20 16:23:58 +01:00
|
|
|
|
2023-02-12 00:32:13 +01:00
|
|
|
# Apps (`nix run`)
|
2023-02-12 23:33:57 +01:00
|
|
|
apps = { };
|
2023-02-12 00:32:13 +01:00
|
|
|
|
|
|
|
# Dev Shells (`nix develop`)
|
|
|
|
devShells = forEachPkgs (pkgs:
|
2023-02-17 01:43:18 +01:00
|
|
|
import ./shells { inherit pkgs; }
|
2022-11-21 08:53:32 +01:00
|
|
|
);
|
2022-11-20 16:23:58 +01:00
|
|
|
|
2023-02-12 00:32:13 +01:00
|
|
|
# Formatter
|
|
|
|
formatter = forEachPkgs (pkgs:
|
|
|
|
pkgs.nixpkgs-fmt
|
|
|
|
);
|
|
|
|
|
|
|
|
# Templates
|
|
|
|
templates = import ./templates;
|
|
|
|
|
|
|
|
# Overlays
|
|
|
|
overlays = import ./overlays { inherit inputs outputs; };
|
2022-11-27 01:12:21 +01:00
|
|
|
|
|
|
|
# Machines
|
2023-02-14 10:10:08 +01:00
|
|
|
inherit machines;
|
|
|
|
inherit homeManagerMachines;
|
|
|
|
inherit nixDarwinMachines;
|
|
|
|
inherit nixOnDroidMachines;
|
|
|
|
inherit nixosMachines;
|
2023-02-11 00:08:58 +01:00
|
|
|
|
2023-02-14 10:10:08 +01:00
|
|
|
# Modules
|
|
|
|
inherit nixosModules;
|
|
|
|
inherit nixOnDroidModules;
|
|
|
|
inherit nixDarwinModules;
|
|
|
|
inherit homeManagerModules;
|
|
|
|
|
|
|
|
# Configurations
|
|
|
|
nixosConfigurations = autoNixosConfigurations;
|
|
|
|
nixOnDroidConfigurations = autoNixOnDroidConfigurations;
|
|
|
|
darwinConfigurations = autoDarwinConfigurations;
|
|
|
|
homeConfigurations = autoHomeConfigurations;
|
2022-11-20 16:23:58 +01:00
|
|
|
};
|
|
|
|
}
|