dotfiles/flake.nix

45 lines
1.3 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";
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;
# 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"]];
# nixosConfigurations = std.pick [ [ "dotfiles" "nixos" ] ];
# homeConfigurations = std.pick [ [ "dotfiles" "home" ] ];
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"]];
};
2022-12-25 09:55:30 +00:00
}