nixos/services.ihaskell: remove with lib;
This commit is contained in:
parent
2270873952
commit
7065336804
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user