summaryrefslogtreecommitdiff
path: root/modules/flake-parts/devenv.nix
diff options
context:
space:
mode:
authoraristote <quentin.aristote@irif.fr>2025-07-29 15:25:11 +0200
committeraristote <quentin.aristote@irif.fr>2025-07-29 15:25:11 +0200
commitfc019d789523ce5f89436b8dbc458cf3b79abf43 (patch)
treeec56fd1b1ed9fc75096c0b09db48a152975e4d53 /modules/flake-parts/devenv.nix
parenta3d19bc509d9f39fb41256cd55d2bd7706de202f (diff)
reformat everything with nixfmt
Diffstat (limited to 'modules/flake-parts/devenv.nix')
-rw-r--r--modules/flake-parts/devenv.nix30
1 files changed, 18 insertions, 12 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