the great update

This commit is contained in:
2025-03-07 17:04:41 +09:00
parent 442f46f622
commit 6216fcd751
77 changed files with 732 additions and 305 deletions

View File

@@ -0,0 +1,15 @@
{ pkgs, ... }:
let
alacrittyconf = pkgs.writeText "alacritty.toml" ''
[window]
opacity = 0.85
'';
in
pkgs.symlinkJoin {
name = "alacritty-wrapped";
paths = [ pkgs.alacritty ];
buildInputs = [ pkgs.makeWrapper ];
postBuild = ''
wrapProgram $out/bin/alacritty --add-flags "--config-file ${alacrittyconf}"
'';
}

View File

@@ -0,0 +1,30 @@
{ config, pkgs, ... }:
let
lsCmd = "eza -la --git -s type";
bashrc = pkgs.writeShellScript ".bashrc" ''
[[ $- == *i* ]] || return
eval "$(fzf --bash)"
eval "$(zoxide init bash)"
HISTFILESIZE=100000
HISTSIZE=1000
alias cd=z
alias l="${lsCmd}"
alias ls="${lsCmd}"
alias update-flake="nix flake update"
if [[ ! -v BASH_COMPLETION_VERSINFO ]]; then
. "${pkgs.bash-completion}/etc/profile.d/bash_completion.sh"
fi
'';
in
pkgs.symlinkJoin {
name = "bash-wrapped";
paths = with pkgs; [ bash bash-completion];
buildInputs = [ pkgs.makeWrapper ];
postBuild = ''
wrapProgram $out/bin/bash --add-flags "--rcfile ${bashrc}"
'';
}

10
user/wrapped/default.nix Normal file
View File

@@ -0,0 +1,10 @@
{ pkgs, config, ... }:
let
packages = {
alacritty = pkgs.callPackage ./alacritty {};
bash = pkgs.callPackage ./bash {};
};
in
{
environment.systemPackages = builtins.attrValues packages;
}

View File

View File

@@ -0,0 +1,3 @@
{ pkgs, ... }:
let
fish_config = import fishinit

View File

@@ -0,0 +1,8 @@
{ pkgs, aliasStr, ... }:
pkgs.writeShellScriptBin "etc/fish/config.fish" ''
eval "$( ${pkgs.zoxide}/bin/zoxide init fish )"
${pkgs.fzf}/bin/fzf --fish | source
source ${./config.fish}
''