flake: modularize w/ flake-parts

This commit is contained in:
NotAShelf 2024-08-18 16:29:30 +03:00
parent ad27af514a
commit 399d184e35
No known key found for this signature in database
GPG key ID: AF26552424E53993
3 changed files with 14 additions and 6 deletions

View file

@ -11,11 +11,9 @@
outputs = inputs: outputs = inputs:
inputs.flake-parts.lib.mkFlake {inherit inputs;} { inputs.flake-parts.lib.mkFlake {inherit inputs;} {
systems = ["x86_64-linux"]; systems = ["x86_64-linux"];
imports = [./hosts]; imports = [
perSystem = {pkgs, ...}: { ./hosts
devShells.default = pkgs.mkShell { ./parts
buildInputs = [pkgs.alejandra]; ];
};
};
}; };
} }

3
parts/default.nix Normal file
View file

@ -0,0 +1,3 @@
{
imports = [./devShell.nix];
}

7
parts/devShell.nix Normal file
View file

@ -0,0 +1,7 @@
{
perSystem = {pkgs, ...}: {
devShells.default = pkgs.mkShellNoCC {
packages = [pkgs.alejandra];
};
};
}