1
0
Fork 0
dotfiles/flake.nix

50 lines
1.1 KiB
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
};
2025-03-01 22:34:30 +01:00
nixConfig = {
extra-trusted-public-keys = "devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw=";
extra-substituters = "https://devenv.cachix.org";
};
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,
self',
2025-03-25 18:48:52 +01:00
lib,
2024-12-19 00:15:20 +01:00
...
}: {
2025-03-25 18:48:52 +01:00
packages = lib.packagesFromDirectoryRecursive {
inherit (pkgs) callPackage;
directory = ./packages;
};
2024-12-19 00:15:20 +01:00
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
export WEAVE_HIST=$root/.weavecache
'';
2024-04-21 21:07:19 +02:00
};
};
};
}