nixos/environment.unix-odbc-drivers.nix: remove with lib;
This commit is contained in:
parent
6232911ef5
commit
a39c4671d8
@ -1,7 +1,4 @@
|
|||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
# unixODBC drivers (this solution is not perfect.. Because the user has to
|
# unixODBC drivers (this solution is not perfect.. Because the user has to
|
||||||
# ask the admin to add a driver.. but it's simple and works
|
# ask the admin to add a driver.. but it's simple and works
|
||||||
|
|
||||||
@ -16,10 +13,10 @@ in {
|
|||||||
###### interface
|
###### interface
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
environment.unixODBCDrivers = mkOption {
|
environment.unixODBCDrivers = lib.mkOption {
|
||||||
type = types.listOf types.package;
|
type = lib.types.listOf lib.types.package;
|
||||||
default = [];
|
default = [];
|
||||||
example = literalExpression "with pkgs.unixODBCDrivers; [ sqlite psql ]";
|
example = lib.literalExpression "with pkgs.unixODBCDrivers; [ sqlite psql ]";
|
||||||
description = ''
|
description = ''
|
||||||
Specifies Unix ODBC drivers to be registered in
|
Specifies Unix ODBC drivers to be registered in
|
||||||
{file}`/etc/odbcinst.ini`. You may also want to
|
{file}`/etc/odbcinst.ini`. You may also want to
|
||||||
@ -31,8 +28,8 @@ in {
|
|||||||
|
|
||||||
###### implementation
|
###### implementation
|
||||||
|
|
||||||
config = mkIf (config.environment.unixODBCDrivers != []) {
|
config = lib.mkIf (config.environment.unixODBCDrivers != []) {
|
||||||
environment.etc."odbcinst.ini".text = concatMapStringsSep "\n" iniDescription config.environment.unixODBCDrivers;
|
environment.etc."odbcinst.ini".text = lib.concatMapStringsSep "\n" iniDescription config.environment.unixODBCDrivers;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user