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";
|
|
|
|
hive.url = "github:divnix/hive";
|
2022-12-25 09:55:30 +00:00
|
|
|
};
|
|
|
|
|
2023-05-02 16:28:34 +00:00
|
|
|
outputs = { std, hive, ... }@inputs: std.growOn
|
|
|
|
{
|
|
|
|
# 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
|
|
|
|
|
|
|
cellBlocks =
|
2023-01-12 18:42:20 +00:00
|
|
|
let
|
2023-05-16 16:31:51 +00:00
|
|
|
inherit (std.blockTypes) devshells functions;
|
2023-01-12 18:42:20 +00:00
|
|
|
in
|
2023-05-02 16:28:34 +00:00
|
|
|
[
|
2023-05-16 16:31:51 +00:00
|
|
|
(devshells "devshells")
|
|
|
|
(devshells "userShells")
|
|
|
|
# (functions "host_profile")
|
|
|
|
# (functions "home_profile")
|
2022-12-25 09:55:30 +00:00
|
|
|
|
2023-05-02 16:28:34 +00:00
|
|
|
];
|
|
|
|
}
|
2023-01-12 18:42:20 +00:00
|
|
|
{
|
2023-05-02 16:28:34 +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-02-22 20:18:44 +00:00
|
|
|
};
|
2022-12-25 09:55:30 +00:00
|
|
|
}
|