Merge branch 'master' of code.m3ta.dev:m3tam3re/m3ta-home
This commit is contained in:
@@ -2,16 +2,19 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
options,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.base.cliTools.fzf;
|
||||
changeDirWidgetCommand = "fd --type d --exclude .git --follow --hidden";
|
||||
in {
|
||||
# Enabled by default — base modules are always-on.
|
||||
options.base.cliTools.fzf.enable = (mkEnableOption "enable fuzzy finder") // {default = true;};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.fzf = {
|
||||
programs.fzf =
|
||||
{
|
||||
enable = true;
|
||||
enableFishIntegration = true;
|
||||
colors = {
|
||||
@@ -35,7 +38,11 @@ in {
|
||||
"--bind 'ctrl-y:execute-silent(echo -n {2..} | wl-copy)+abort'"
|
||||
];
|
||||
defaultCommand = "fd --type f --exclude .git --follow --hidden";
|
||||
changeDirWidgetCommand = "fd --type d --exclude .git --follow --hidden";
|
||||
};
|
||||
}
|
||||
// (
|
||||
if options.programs.fzf ? changeDirWidget
|
||||
then {changeDirWidget.command = changeDirWidgetCommand;}
|
||||
else {inherit changeDirWidgetCommand;}
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
}: {
|
||||
qt = {
|
||||
enable = true;
|
||||
platformTheme.name = "gtk";
|
||||
platformTheme.name = "gtk3";
|
||||
};
|
||||
|
||||
gtk = {
|
||||
|
||||
@@ -68,6 +68,7 @@
|
||||
m3taHomeInputs.agent-lib.packages.${pkgs.stdenv.hostPlatform.system}.agent-lib-cli
|
||||
beads
|
||||
crunch
|
||||
herdr
|
||||
pi-coding-agent
|
||||
(qmd.override {
|
||||
vulkanSupport = videoDrivers == ["amdgpu"];
|
||||
|
||||
@@ -17,9 +17,6 @@ in {
|
||||
bun
|
||||
];
|
||||
|
||||
home.file.".npmrc".text = ''
|
||||
prefix=${npmGlobalPrefix}
|
||||
'';
|
||||
home.sessionVariables.NPM_CONFIG_PREFIX = npmGlobalPrefix;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -11,7 +11,9 @@
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
}: let
|
||||
npmGlobalPrefix = "${config.home.homeDirectory}/.npm-global";
|
||||
in {
|
||||
# ── Clipboard ──
|
||||
services.cliphist = {
|
||||
enable = true;
|
||||
@@ -25,4 +27,10 @@
|
||||
# These are overridden by the identity module, but provide safe defaults.
|
||||
home.username = lib.mkDefault "m3tam3re";
|
||||
home.homeDirectory = lib.mkDefault "/home/${config.home.username}";
|
||||
|
||||
home.file.".npmrc".text = ''
|
||||
prefix=${npmGlobalPrefix}
|
||||
@m3ta:registry=https://code.m3ta.dev/api/packages/m3tam3re/npm/
|
||||
//code.m3ta.dev/api/packages/m3tam3re/npm/:_authToken=''${GITEA_TOKEN}
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user