1
0
Fork 0
This commit is contained in:
Lukas Wurzinger 2024-12-29 22:20:56 +01:00
parent 1f43ea8730
commit 5a0a85aed9
No known key found for this signature in database
11 changed files with 766 additions and 19 deletions

View file

@ -3,7 +3,14 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
devenv-root = {
url = "file+file:///dev/null";
flake = false;
};
devenv.url = "github:cachix/devenv";
};
outputs = {
@ -12,6 +19,10 @@
...
} @ inputs:
flake-parts.lib.mkFlake {inherit inputs;} {
imports = [
inputs.devenv.flakeModule
];
systems = nixpkgs.lib.systems.flakeExposed;
perSystem = {
@ -21,10 +32,21 @@
}: {
packages.plow = pkgs.callPackage ./plow {};
devShells.default = pkgs.mkShellNoCC {
PLOW_FROM = "./home";
devenv.shells.default = {
devenv.root = let
devenvRootFileContent = builtins.readFile inputs.devenv-root.outPath;
in
pkgs.lib.mkIf (devenvRootFileContent != "") devenvRootFileContent;
packages = [self'.packages.plow];
env.PLOW_FROM = "./home";
imports = [
./devenv.nix
];
packages = [
self'.packages.plow
];
};
};
};