mirror of
https://github.com/hyprwm/hyprland-infra.git
synced 2025-05-12 21:30:36 +01:00
flake: modularize w/ flake-parts
This commit is contained in:
parent
ad27af514a
commit
399d184e35
3 changed files with 14 additions and 6 deletions
10
flake.nix
10
flake.nix
|
@ -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
3
parts/default.nix
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
imports = [./devShell.nix];
|
||||||
|
}
|
7
parts/devShell.nix
Normal file
7
parts/devShell.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
perSystem = {pkgs, ...}: {
|
||||||
|
devShells.default = pkgs.mkShellNoCC {
|
||||||
|
packages = [pkgs.alejandra];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue