dotfiles/flake.nix

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