about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorFelix Buehler2024-08-24 22:05:45 +0200
committerFelix Buehler2024-08-30 23:00:50 +0200
commit7065336804b66b5318c8e8721c08a5066fe25274 (patch)
tree1eeedd619875b49219b01dae5fb07846a50ebe00 /nixos
parent2270873952fc07ebc24532634e79600248120f86 (diff)
nixos/services.ihaskell: remove `with lib;`
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/misc/ihaskell.nix17
1 files changed, 7 insertions, 10 deletions
diff --git a/nixos/modules/services/misc/ihaskell.nix b/nixos/modules/services/misc/ihaskell.nix
index 186ff7345ab3..b2ea3e70dede 100644
--- a/nixos/modules/services/misc/ihaskell.nix
+++ b/nixos/modules/services/misc/ihaskell.nix
@@ -1,7 +1,4 @@
 { pkgs, lib, config, ... }:
-
-with lib;
-
 let
 
   cfg = config.services.ihaskell;
@@ -14,17 +11,17 @@ in
 {
   options = {
     services.ihaskell = {
-      enable = mkOption {
-        type = types.bool;
+      enable = lib.mkOption {
+        type = lib.types.bool;
         default = false;
         description = "Autostart an IHaskell notebook service.";
       };
 
-      extraPackages = mkOption {
-        type = types.functionTo (types.listOf types.package);
+      extraPackages = lib.mkOption {
+        type = lib.types.functionTo (lib.types.listOf lib.types.package);
         default = haskellPackages: [];
-        defaultText = literalExpression "haskellPackages: []";
-        example = literalExpression ''
+        defaultText = lib.literalExpression "haskellPackages: []";
+        example = lib.literalExpression ''
           haskellPackages: [
             haskellPackages.wreq
             haskellPackages.lens
@@ -39,7 +36,7 @@ in
     };
   };
 
-  config = mkIf cfg.enable {
+  config = lib.mkIf cfg.enable {
 
     users.users.ihaskell = {
       group = config.users.groups.ihaskell.name;