dotfiles/flake.nix

42 lines
1.2 KiB
Nix
Raw Normal View History

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";
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;
modules = ./nix/modules;
cellBlocks =
2023-01-12 18:42:20 +00:00
let
2023-05-02 16:28:34 +00:00
inherit (std.blockTypes) devShells;
inherit (hive.blockTypes) nixosConfigurations homeConfigurations;
2023-01-12 18:42:20 +00:00
in
2023-05-02 16:28:34 +00:00
[
(devShells "devshells")
(nixosConfigurations "host_profile")
(homeConfigurations "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" ] ];
nixosConfigurations = std.harvest [ [ "dotfiles" "nixos" ] ];
homeConfigurations = std.harvest [ [ "dotfiles" "home" ] ];
};
2022-12-25 09:55:30 +00:00
}