2022-12-25 09:55:30 +00:00
|
|
|
{
|
2023-01-15 09:54:40 +00:00
|
|
|
nixConfig = {
|
2023-01-19 15:28:54 +00:00
|
|
|
accept-flake-config = true;
|
|
|
|
experimental-features = "nix-command flakes";
|
2023-03-24 16:39:29 +00:00
|
|
|
max-jobs = 12;
|
2023-01-15 09:54:40 +00:00
|
|
|
};
|
2022-12-25 09:55:30 +00:00
|
|
|
description = "My personal configuration in Nix (and some native configurations)";
|
|
|
|
inputs = {
|
2023-05-02 16:28:34 +00:00
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
deploy-rs.url = "github:serokell/deploy-rs";
|
|
|
|
std.url = "github:divnix/std";
|
2023-06-18 00:46:31 +00:00
|
|
|
rust-overlay = "github:oxalica/rust-overlay.git";
|
2022-12-25 09:55:30 +00:00
|
|
|
};
|
|
|
|
|
2023-06-18 00:46:31 +00:00
|
|
|
outputs = {std, ...} @ inputs:
|
|
|
|
std.growOn
|
2023-05-02 16:28:34 +00:00
|
|
|
{
|
|
|
|
# boilerplate
|
|
|
|
inherit inputs;
|
|
|
|
# All cell blocks are under ./nix/cells/<cell>/<cellblock> as `<cellblock>.nix`
|
|
|
|
# or `<cellblock/default.nix`
|
|
|
|
cellsFrom = ./nix/cells;
|
2023-05-16 16:26:57 +00:00
|
|
|
# modules = ./nix/modules;
|
2023-05-02 16:28:34 +00:00
|
|
|
|
2023-06-18 00:46:31 +00:00
|
|
|
cellBlocks = let
|
|
|
|
inherit (std.blockTypes) devshells functions;
|
|
|
|
in [
|
|
|
|
(devshells "devshells")
|
|
|
|
(devshells "userShells")
|
|
|
|
(functions "home-profiles")
|
|
|
|
(functions "home-modules")
|
|
|
|
];
|
2023-05-02 16:28:34 +00:00
|
|
|
}
|
2023-01-12 18:42:20 +00:00
|
|
|
{
|
2023-06-18 00:46:31 +00:00
|
|
|
devShells = std.harvest [["dotfiles" "devshells"]];
|
2023-05-16 16:31:51 +00:00
|
|
|
# nixosConfigurations = std.pick [ [ "dotfiles" "nixos" ] ];
|
|
|
|
# homeConfigurations = std.pick [ [ "dotfiles" "home" ] ];
|
2023-06-12 04:21:01 +00:00
|
|
|
homeModules = std.pick [["repo" "home-modules"]];
|
2023-06-18 00:46:31 +00:00
|
|
|
|
|
|
|
# TODO: Debug only
|
|
|
|
homeProfiles = std.pick [["repo" "home-profiles"]];
|
|
|
|
packages = std.harvest [["repo" "home-configs"]];
|
2023-02-22 20:18:44 +00:00
|
|
|
};
|
2022-12-25 09:55:30 +00:00
|
|
|
}
|