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 = {
|
2023-07-25 22:42:47 +02:00
|
|
|
url = "github:t184256/nix-on-droid/release-23.05";
|
2022-12-04 20:55:48 +01:00
|
|
|
# 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";
|
2023-07-13 13:33:01 +02:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
2022-11-22 22:36:10 +01:00
|
|
|
};
|
|
|
|
|
2022-11-20 16:23:58 +01:00
|
|
|
# Home Manager
|
|
|
|
home-manager = {
|
2023-04-15 17:09:55 +02:00
|
|
|
url = "github:nix-community/home-manager/master";
|
2022-11-20 16:23:58 +01:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2023-07-29 17:12:22 +02:00
|
|
|
deploy-rs = {
|
|
|
|
url = "github:serokell/deploy-rs";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2023-03-23 07:17:20 +01:00
|
|
|
# Nix User Repository
|
|
|
|
nur = {
|
|
|
|
url = "github:nix-community/NUR";
|
|
|
|
};
|
|
|
|
|
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-03-13 17:18:03 +01:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
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-07-13 13:33:01 +02:00
|
|
|
inputs.zig-overlay.follows = "zig-overlay";
|
2022-11-21 14:36:23 +01:00
|
|
|
};
|
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-07-29 17:12:22 +02:00
|
|
|
, deploy-rs
|
2023-07-25 09:29:36 +02:00
|
|
|
, nur
|
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;
|
2023-04-15 17:09:55 +02:00
|
|
|
util = import ./util { inherit inputs outputs; };
|
2023-07-25 09:29:36 +02:00
|
|
|
in
|
|
|
|
rec {
|
2023-02-12 00:32:13 +01:00
|
|
|
# Packages (`nix build`)
|
2023-04-23 01:39:34 +02:00
|
|
|
packages = util.forEachPkgs (pkgs:
|
2023-02-12 00:32:13 +01:00
|
|
|
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-04-23 01:39:34 +02:00
|
|
|
apps = util.forEachPkgs (pkgs:
|
2023-02-19 12:54:02 +01:00
|
|
|
import ./apps { inherit pkgs; }
|
|
|
|
);
|
2023-02-12 00:32:13 +01:00
|
|
|
|
|
|
|
# Dev Shells (`nix develop`)
|
2023-04-23 01:39:34 +02:00
|
|
|
devShells = util.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
|
2023-04-23 01:39:34 +02:00
|
|
|
formatter = util.forEachPkgs (pkgs:
|
2023-02-12 00:32:13 +01:00
|
|
|
pkgs.nixpkgs-fmt
|
|
|
|
);
|
|
|
|
|
|
|
|
# Templates
|
2023-07-25 09:29:36 +02:00
|
|
|
templates = import ./templates {
|
|
|
|
inherit inputs outputs;
|
|
|
|
};
|
2023-02-12 00:32:13 +01:00
|
|
|
|
|
|
|
# Overlays
|
2023-07-25 09:29:36 +02:00
|
|
|
overlays = import ./overlays {
|
|
|
|
inherit inputs outputs;
|
|
|
|
};
|
2022-11-27 01:12:21 +01:00
|
|
|
|
|
|
|
# Machines
|
2023-04-23 01:39:34 +02:00
|
|
|
inherit (util)
|
|
|
|
machines
|
|
|
|
homeManagerMachines
|
|
|
|
nixDarwinMachines
|
|
|
|
nixOnDroidMachines
|
|
|
|
nixosMachines;
|
2023-02-11 00:08:58 +01:00
|
|
|
|
2023-02-14 10:10:08 +01:00
|
|
|
# Modules
|
2023-04-23 01:39:34 +02:00
|
|
|
inherit (util)
|
|
|
|
nixosModules
|
|
|
|
nixOnDroidModules
|
|
|
|
nixDarwinModules
|
|
|
|
homeManagerModules;
|
2023-02-14 10:10:08 +01:00
|
|
|
|
|
|
|
# Configurations
|
2023-04-23 01:39:34 +02:00
|
|
|
nixosConfigurations = util.autoNixosConfigurations;
|
|
|
|
nixOnDroidConfigurations = util.autoNixOnDroidConfigurations;
|
|
|
|
darwinConfigurations = util.autoDarwinConfigurations;
|
|
|
|
homeConfigurations = util.autoHomeConfigurations;
|
2023-07-29 17:12:22 +02:00
|
|
|
|
|
|
|
# Deploy.rs nodes
|
|
|
|
deploy.nodes = util.deploy.autoNodes;
|
|
|
|
checks = util.autoChecks;
|
2022-11-20 16:23:58 +01:00
|
|
|
};
|
|
|
|
}
|