1
0
Fork 0
dotfiles/flake.nix

38 lines
811 B
Nix
Raw Normal View History

2024-04-21 21:07:19 +02:00
{
description = "My dotfiles";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
2025-05-11 23:58:28 +02:00
weave.url = "git+https://codeberg.org/helvetica/weave.git";
2024-04-21 21:07:19 +02:00
};
outputs = {
nixpkgs,
flake-parts,
...
} @ inputs:
flake-parts.lib.mkFlake {inherit inputs;} {
systems = nixpkgs.lib.systems.flakeExposed;
2024-12-19 00:15:20 +01:00
perSystem = {
2025-05-11 23:58:28 +02:00
system,
2024-12-19 00:15:20 +01:00
pkgs,
...
}: {
2025-05-11 23:58:28 +02:00
devShells.default = pkgs.mkShellNoCC {
2024-12-29 22:20:56 +01:00
packages = [
2025-05-11 23:58:28 +02:00
inputs.weave.packages.${system}.default
2024-12-29 22:20:56 +01:00
];
2025-05-11 23:58:28 +02:00
shellHook = ''
root=$(git rev-parse --show-toplevel)
export WEAVE_FROM=$root/home
2025-05-12 18:41:46 +02:00
export WEAVE_HIST=$root/.weavehist
2025-05-11 23:58:28 +02:00
'';
2024-04-21 21:07:19 +02:00
};
};
};
}