summaryrefslogtreecommitdiff
path: root/modules/flake-parts
diff options
context:
space:
mode:
Diffstat (limited to 'modules/flake-parts')
-rw-r--r--modules/flake-parts/devenv.nix30
-rw-r--r--modules/flake-parts/personal.nix8
2 files changed, 25 insertions, 13 deletions
diff --git a/modules/flake-parts/devenv.nix b/modules/flake-parts/devenv.nix
index 9e01a56..d63290c 100644
--- a/modules/flake-parts/devenv.nix
+++ b/modules/flake-parts/devenv.nix
@@ -1,19 +1,25 @@
-devenvModules: {
+devenvModules:
+{
flake-parts-lib,
inputs,
...
-}: {
- imports = [inputs.devenv.flakeModule];
+}:
+{
+ imports = [ inputs.devenv.flakeModule ];
- options.perSystem = flake-parts-lib.mkPerSystemOption ({lib, ...}: {
- options.devenv.shells = lib.mkOption {
- type = with lib.types;
- lazyAttrsOf (submoduleWith {
- modules = builtins.attrValues devenvModules;
- shorthandOnlyDefinesConfig = null;
- });
- };
- });
+ options.perSystem = flake-parts-lib.mkPerSystemOption (
+ { lib, ... }:
+ {
+ options.devenv.shells = lib.mkOption {
+ type =
+ with lib.types;
+ lazyAttrsOf (submoduleWith {
+ modules = builtins.attrValues devenvModules;
+ shorthandOnlyDefinesConfig = null;
+ });
+ };
+ }
+ );
# the extra parameter before the module make this module behave like an
# anonymous module, so we need to manually identify the file, for better
diff --git a/modules/flake-parts/personal.nix b/modules/flake-parts/personal.nix
index 370e176..b259c29 100644
--- a/modules/flake-parts/personal.nix
+++ b/modules/flake-parts/personal.nix
@@ -1,3 +1,9 @@
{
- systems = ["x86_64-linux" "i686-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin"];
+ systems = [
+ "x86_64-linux"
+ "i686-linux"
+ "x86_64-darwin"
+ "aarch64-linux"
+ "aarch64-darwin"
+ ];
}