From 90ff62dc7b53afd4423601e0cab7df614252cc2f Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sat, 16 Nov 2024 17:33:19 -0800 Subject: [PATCH] feat(home): Just --- homes/x86_64-linux/marley@nyx/default.nix | 1 + modules/home/programs/just/default.nix | 24 +++++++++++++++++++++++ old/home/programs/just.nix | 6 ------ 3 files changed, 25 insertions(+), 6 deletions(-) create mode 100644 modules/home/programs/just/default.nix delete mode 100644 old/home/programs/just.nix diff --git a/homes/x86_64-linux/marley@nyx/default.nix b/homes/x86_64-linux/marley@nyx/default.nix index ee52b64..f20a43b 100644 --- a/homes/x86_64-linux/marley@nyx/default.nix +++ b/homes/x86_64-linux/marley@nyx/default.nix @@ -30,6 +30,7 @@ in gpg = enabled; hyfetch = enabled; journalctl = enabled; + just = enabled; neo = enabled; systemctl = enabled; }; diff --git a/modules/home/programs/just/default.nix b/modules/home/programs/just/default.nix new file mode 100644 index 0000000..0376cb1 --- /dev/null +++ b/modules/home/programs/just/default.nix @@ -0,0 +1,24 @@ +{ + lib, + config, + namespace, + pkgs, + ... +}: +let + inherit (lib) mkIf; + inherit (lib.${namespace}) mkEnableModule; + + cfg = config.${namespace}.programs.just; +in +{ + options = mkEnableModule "programs.just"; + + config = mkIf cfg.enable { + home.packages = with pkgs; [ + just + ]; + + home.shellAbbrs.j = "just"; + }; +} diff --git a/old/home/programs/just.nix b/old/home/programs/just.nix deleted file mode 100644 index ec42fc5..0000000 --- a/old/home/programs/just.nix +++ /dev/null @@ -1,6 +0,0 @@ -{ pkgs, ... }: -{ - home.packages = with pkgs; [ - just - ]; -}