From a26aa4961476b353f1404152397bf870075d7030 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Mon, 18 Dec 2023 00:16:48 +0800 Subject: [PATCH] profiles/dev: simplify home-manager configuration Similar change. With user-specific modules, we can make this more generic. --- modules/home-manager/profiles/dev.nix | 30 +++++++++++++-------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/modules/home-manager/profiles/dev.nix b/modules/home-manager/profiles/dev.nix index efde8d7a..9a20c445 100644 --- a/modules/home-manager/profiles/dev.nix +++ b/modules/home-manager/profiles/dev.nix @@ -6,9 +6,9 @@ let cfg = config.profiles.dev; in { options.profiles.dev = { enable = - lib.mkEnableOption "foo-dogsquared's user-specific development setup"; + lib.mkEnableOption "basic set of programs for development setup"; shell.enable = - lib.mkEnableOption "configuration of foo-dogsquared's shell of choice"; + lib.mkEnableOption "enhanced shell configuration"; extras.enable = lib.mkEnableOption "additional tools for development stuff"; shaders.enable = lib.mkEnableOption "tools for developing shaders"; servers.enable = lib.mkEnableOption "toolkit for managing servers from your home"; @@ -42,17 +42,6 @@ in { }; }; - # A fuzzy finder that enables fuzzy finding not furry finding, a common misconception. - programs.fzf = - let - fd = "${lib.getBin pkgs.fd}/bin/fd"; - in - { - enable = true; - changeDirWidgetCommand = "${fd} --type directory --unrestricted"; - defaultCommand = "${fd} --type file --hidden"; - }; - # The file manager of choice. programs.lf = { enable = true; @@ -94,12 +83,24 @@ in { }; }; - # Echolocation. + # Echolocation. Since you're using a home-manager configuration, you're + # most likely using Nix anyways. programs.nix-index.enable = lib.mkIf (attrs ? osConfig -> !attrs.osConfig.programs.nix-index.enable) true; }) # Level up your terminal-dwelling skills with these. (lib.mkIf cfg.shell.enable { + # A fuzzy finder that enables fuzzy finding not furry finding, a common misconception. + programs.fzf = + let + fd = "${lib.getBin pkgs.fd}/bin/fd"; + in + { + enable = true; + changeDirWidgetCommand = "${fd} --type directory --unrestricted"; + defaultCommand = "${fd} --type file --hidden"; + }; + # Supercharging your shell history. Just don't forget to flush them out # before doing questionable things. programs.atuin = { @@ -173,7 +174,6 @@ in { (lib.mkIf cfg.extras.enable { home.packages = with pkgs; [ - act # Test your CI without embarrassing yourself repeatedly pushing into GitHub repos. gum # The fancy shell script toolkit. hyperfine # Making sure your apps are not just fine but REEEEEEAAAAALY fine. license-cli # A nice generator template for license files.