Simplify use of lib
This commit is contained in:
parent
3d4bca0ada
commit
0f90bcfd70
25 changed files with 124 additions and 74 deletions
|
@ -5,10 +5,12 @@
|
|||
...
|
||||
}:
|
||||
|
||||
{
|
||||
options.features.cli.bluetuith.enable = lib.mkEnableOption "Enable bluetuith";
|
||||
with lib;
|
||||
|
||||
config = lib.mkIf config.features.cli.bluetuith.enable {
|
||||
{
|
||||
options.features.cli.bluetuith.enable = mkEnableOption "Enable bluetuith";
|
||||
|
||||
config = mkIf config.features.cli.bluetuith.enable {
|
||||
home.packages = with pkgs; [
|
||||
bluetuith
|
||||
];
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
{
|
||||
options.features.cli.direnv.enable = lib.mkEnableOption "Enable direnv";
|
||||
with lib;
|
||||
|
||||
config = lib.mkIf config.features.cli.direnv.enable {
|
||||
{
|
||||
options.features.cli.direnv.enable = mkEnableOption "Enable direnv";
|
||||
|
||||
config = mkIf config.features.cli.direnv.enable {
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
|
|
|
@ -6,10 +6,12 @@
|
|||
...
|
||||
}:
|
||||
|
||||
{
|
||||
options.features.cli.neovim.enable = lib.mkEnableOption "Enable neovim";
|
||||
with lib;
|
||||
|
||||
config = lib.mkIf config.features.cli.neovim.enable {
|
||||
{
|
||||
options.features.cli.neovim.enable = mkEnableOption "Enable neovim";
|
||||
|
||||
config = mkIf config.features.cli.neovim.enable {
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
|
||||
|
|
|
@ -5,10 +5,12 @@
|
|||
...
|
||||
}:
|
||||
|
||||
{
|
||||
options.features.cli.tmux-sessionizer.enable = lib.mkEnableOption "Enable tmux-sessionizer";
|
||||
with lib;
|
||||
|
||||
config = lib.mkIf config.features.cli.tmux-sessionizer.enable {
|
||||
{
|
||||
options.features.cli.tmux-sessionizer.enable = mkEnableOption "Enable tmux-sessionizer";
|
||||
|
||||
config = mkIf config.features.cli.tmux-sessionizer.enable {
|
||||
home.packages = with pkgs; [ custom-tmux-sessionizer ];
|
||||
|
||||
home.file.".tmux-sessionizer".source = "${
|
||||
|
|
|
@ -5,13 +5,15 @@
|
|||
...
|
||||
}:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
inherit (pkgs) tmuxPlugins;
|
||||
in
|
||||
{
|
||||
options.features.cli.tmux.enable = lib.mkEnableOption "Enable tmux";
|
||||
options.features.cli.tmux.enable = mkEnableOption "Enable tmux";
|
||||
|
||||
config = lib.mkIf config.features.cli.tmux.enable {
|
||||
config = mkIf config.features.cli.tmux.enable {
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue