Re-add the features
config prefix
This commit is contained in:
parent
34cb9db3d4
commit
45433358ff
50 changed files with 245 additions and 231 deletions
|
@ -8,10 +8,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.cli.bluetuith;
|
||||
cfg = config.features.cli.bluetuith;
|
||||
in
|
||||
{
|
||||
options.cli.bluetuith.enable = mkEnableOption "Enable bluetuith";
|
||||
options.features.cli.bluetuith.enable = mkEnableOption "Enable bluetuith";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = with pkgs; [
|
||||
|
|
|
@ -8,11 +8,11 @@
|
|||
let
|
||||
inherit (lib) mkEnableOption mkOption;
|
||||
|
||||
cfg = config.cli.${name};
|
||||
cfg = config.features.cli.${name};
|
||||
name = "bookmarkthis";
|
||||
in
|
||||
{
|
||||
options.cli.${name} = {
|
||||
options.features.cli.${name} = {
|
||||
enable = mkEnableOption "Enable ${name}";
|
||||
|
||||
snippetsFile = mkOption {
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.cli.direnv;
|
||||
cfg = config.features.cli.direnv;
|
||||
in
|
||||
{
|
||||
options.cli.direnv.enable = mkEnableOption "Enable direnv";
|
||||
options.features.cli.direnv.enable = mkEnableOption "Enable direnv";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.direnv = {
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.cli.fzf;
|
||||
cfg = config.features.cli.fzf;
|
||||
in
|
||||
{
|
||||
options.cli.fzf.enable = mkEnableOption "Enable fzf";
|
||||
options.features.cli.fzf.enable = mkEnableOption "Enable fzf";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.fzf = {
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.cli.git;
|
||||
cfg = config.features.cli.git;
|
||||
in
|
||||
{
|
||||
options.cli.git = {
|
||||
options.features.cli.git = {
|
||||
enable = mkEnableOption "Enable git";
|
||||
|
||||
user = mkOption {
|
||||
|
|
|
@ -3,12 +3,12 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.cli.node;
|
||||
cfg = config.features.cli.node;
|
||||
|
||||
inherit (config.xdg) configHome dataHome stateHome;
|
||||
in
|
||||
{
|
||||
options.cli.node.enable = mkEnableOption "Enable node";
|
||||
options.features.cli.node.enable = mkEnableOption "Enable node";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
xdg.configFile."${config.home.sessionVariables.NPM_CONFIG_USERCONFIG}".text = ''
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.cli.notes;
|
||||
cfg = config.features.cli.notes;
|
||||
in
|
||||
{
|
||||
options.cli.notes = {
|
||||
options.features.cli.notes = {
|
||||
enable = mkEnableOption "Enable notes";
|
||||
|
||||
directory = mkOption {
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.cli.ranger;
|
||||
cfg = config.features.cli.ranger;
|
||||
in
|
||||
{
|
||||
options.cli.ranger.enable = mkEnableOption "Enable ranger";
|
||||
options.features.cli.ranger.enable = mkEnableOption "Enable ranger";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.ranger.enable = true;
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.cli.starship;
|
||||
cfg = config.features.cli.starship;
|
||||
in
|
||||
{
|
||||
options.cli.starship.enable = mkEnableOption "Enable starship";
|
||||
options.features.cli.starship.enable = mkEnableOption "Enable starship";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.starship =
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.cli.${service};
|
||||
cfg = config.features.cli.${service};
|
||||
service = "sxhkd";
|
||||
|
||||
inherit (lib) getExe mkIf mkEnableOption;
|
||||
in
|
||||
{
|
||||
options.cli.${service} = {
|
||||
options.features.cli.${service} = {
|
||||
enable = mkEnableOption "Enable ${service}";
|
||||
};
|
||||
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.cli.tmux-sessionizer;
|
||||
cfg = config.features.cli.tmux-sessionizer;
|
||||
in
|
||||
{
|
||||
options.cli.tmux-sessionizer = {
|
||||
options.features.cli.tmux-sessionizer = {
|
||||
enable = mkEnableOption "Enable tmux-sessionizer";
|
||||
enableDmenuIntegration = mkEnableOption "Enable dmenu integration";
|
||||
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.cli.tmux;
|
||||
cfg = config.features.cli.tmux;
|
||||
in
|
||||
{
|
||||
options.cli.tmux.enable = mkEnableOption "Enable tmux";
|
||||
options.features.cli.tmux.enable = mkEnableOption "Enable tmux";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.tmux = {
|
||||
|
|
|
@ -7,12 +7,12 @@
|
|||
|
||||
let
|
||||
name = "todos";
|
||||
cfg = config.cli.${name};
|
||||
cfg = config.features.cli.${name};
|
||||
|
||||
inherit (lib) mkOption types;
|
||||
in
|
||||
{
|
||||
options.cli.${name} = {
|
||||
options.features.cli.${name} = {
|
||||
enable = lib.mkEnableOption "Enable ${name}";
|
||||
|
||||
directory = mkOption {
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.cli.zsh;
|
||||
cfg = config.features.cli.zsh;
|
||||
in
|
||||
{
|
||||
options.cli.zsh.enable = mkEnableOption "Enable zsh";
|
||||
options.features.cli.zsh.enable = mkEnableOption "Enable zsh";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.zsh = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue