refactor: 'with lib.my' -> 'with lib'

This commit is contained in:
Bruno BELANYI 2023-03-16 16:39:13 +00:00
parent 464ed92b00
commit 20341a3129
12 changed files with 29 additions and 29 deletions

View file

@ -3,8 +3,8 @@ let
cfg = config.my.home.bat;
in
{
options.my.home.bat = with lib.my; {
enable = mkDisableOption "bat configuration";
options.my.home.bat = with lib; {
enable = my.mkDisableOption "bat configuration";
};
config.programs.bat = lib.mkIf cfg.enable {

View file

@ -3,8 +3,8 @@ let
cfg = config.my.home.documentation;
in
{
options.my.home.documentation = with lib.my; {
enable = mkDisableOption "documentation integration";
options.my.home.documentation = with lib; {
enable = my.mkDisableOption "documentation integration";
};
# Add documentation for user packages

View file

@ -5,8 +5,8 @@ let
inherit (lib.my) mkMailAddress;
in
{
options.my.home.git = with lib.my; {
enable = mkDisableOption "git configuration";
options.my.home.git = with lib; {
enable = my.mkDisableOption "git configuration";
};
config.home.packages = with pkgs; lib.mkIf cfg.enable [

View file

@ -3,8 +3,8 @@ let
cfg = config.my.home.htop;
in
{
options.my.home.htop = with lib.my; {
enable = mkDisableOption "htop configuration";
options.my.home.htop = with lib; {
enable = my.mkDisableOption "htop configuration";
};
config.programs.htop = lib.mkIf cfg.enable {

View file

@ -3,8 +3,8 @@ let
cfg = config.my.home.jq;
in
{
options.my.home.jq = with lib.my; {
enable = mkDisableOption "jq configuration";
options.my.home.jq = with lib; {
enable = my.mkDisableOption "jq configuration";
};
config.programs.jq = lib.mkIf cfg.enable {

View file

@ -3,8 +3,8 @@ let
cfg = config.my.home.nix-index;
in
{
options.my.home.nix-index = with lib.my; {
enable = mkDisableOption "nix-index configuration";
options.my.home.nix-index = with lib; {
enable = my.mkDisableOption "nix-index configuration";
};
config.programs.nix-index = lib.mkIf cfg.enable {

View file

@ -3,8 +3,8 @@ let
cfg = config.my.home.pager;
in
{
options.my.home.pager = with lib.my; {
enable = mkDisableOption "pager configuration";
options.my.home.pager = with lib; {
enable = my.mkDisableOption "pager configuration";
};

View file

@ -3,8 +3,8 @@ let
cfg = config.my.home.ssh;
in
{
options.my.home.ssh = with lib.my; {
enable = mkDisableOption "ssh configuration";
options.my.home.ssh = with lib; {
enable = my.mkDisableOption "ssh configuration";
};
config.programs.ssh = lib.mkIf cfg.enable {

View file

@ -7,8 +7,8 @@ let
];
in
{
options.my.home.tmux = with lib.my; {
enable = mkDisableOption "tmux terminal multiplexer";
options.my.home.tmux = with lib; {
enable = my.mkDisableOption "tmux terminal multiplexer";
};
config.programs.tmux = lib.mkIf cfg.enable {

View file

@ -18,8 +18,8 @@ let
];
in
{
options.my.home.vim = with lib.my; {
enable = mkDisableOption "vim configuration";
options.my.home.vim = with lib; {
enable = my.mkDisableOption "vim configuration";
};
config.programs.neovim = lib.mkIf cfg.enable {

View file

@ -3,8 +3,8 @@ let
cfg = config.my.home.xdg;
in
{
options.my.home.xdg = with lib.my; {
enable = mkDisableOption "XDG configuration";
options.my.home.xdg = with lib; {
enable = my.mkDisableOption "XDG configuration";
};
config.xdg = lib.mkIf cfg.enable {

View file

@ -3,20 +3,20 @@ let
cfg = config.my.system.documentation;
in
{
options.my.system.documentation = with lib.my; {
enable = mkDisableOption "Documentation integration";
options.my.system.documentation = with lib; {
enable = my.mkDisableOption "Documentation integration";
dev.enable = mkDisableOption "Documentation aimed at developers";
dev.enable = my.mkDisableOption "Documentation aimed at developers";
info.enable = mkDisableOption "Documentation aimed at developers";
info.enable = my.mkDisableOption "Documentation aimed at developers";
man = {
enable = mkDisableOption "Documentation aimed at developers";
enable = my.mkDisableOption "Documentation aimed at developers";
linux = mkDisableOption "Linux man pages (section 2 & 3)";
linux = my.mkDisableOption "Linux man pages (section 2 & 3)";
};
nixos.enable = mkDisableOption "NixOS documentation";
nixos.enable = my.mkDisableOption "NixOS documentation";
};
config = lib.mkIf cfg.enable {