mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 13:32:15 -06:00
feat: removed user1 and tidied up user0 home
This commit is contained in:
parent
0665b883ab
commit
07a6bb2073
78 changed files with 43 additions and 280 deletions
|
|
@ -1,54 +1,27 @@
|
|||
{ pkgs, ... }:
|
||||
{ pkgs, flake, ... }:
|
||||
let
|
||||
inherit (flake.config.people) user0;
|
||||
in
|
||||
{
|
||||
environment = {
|
||||
enableAllTerminfo = true;
|
||||
systemPackages =
|
||||
let
|
||||
yazi-picker = pkgs.writeShellScriptBin "yazi-picker" ''
|
||||
#!/usr/bin/env bash
|
||||
|
||||
paths=$(yazi "$2" --chooser-file=/dev/stdout | while read -r; do printf "%q " "$REPLY"; done)
|
||||
|
||||
if [[ -n "$paths" ]]; then
|
||||
zellij action toggle-floating-panes
|
||||
zellij action write 27 # send <Escape> key
|
||||
zellij action write-chars ":$1 $paths"
|
||||
zellij action write 13 # send <Enter> key
|
||||
else
|
||||
zellij action toggle-floating-panes
|
||||
fi
|
||||
'';
|
||||
lazygit-root = pkgs.writeShellScriptBin "lazygit-root" ''
|
||||
#!/usr/bin/env bash
|
||||
|
||||
git_root=$(git rev-parse --show-toplevel 2>/dev/null)
|
||||
|
||||
if [[ -z "$git_root" ]]; then
|
||||
echo "Not in a git repository"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd "$git_root" && lazygit
|
||||
'';
|
||||
in
|
||||
builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
git
|
||||
grim
|
||||
pijul
|
||||
sshfs
|
||||
tomb
|
||||
just
|
||||
virt-manager
|
||||
imagemagick
|
||||
;
|
||||
# Add your custom scripts to the attribute set
|
||||
inherit yazi-picker lazygit-root;
|
||||
};
|
||||
systemPackages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
git
|
||||
grim
|
||||
pijul
|
||||
sshfs
|
||||
tomb
|
||||
just
|
||||
virt-manager
|
||||
imagemagick
|
||||
;
|
||||
};
|
||||
variables = {
|
||||
VIDEO_PLAYER = "mpv";
|
||||
EDITOR = "hx";
|
||||
TERM = "ghostty";
|
||||
XDG_DOWNLOAD_DIR = "/home/${user0}/downloads";
|
||||
NIXPKGS_ALLOW_INSECURE = "1";
|
||||
NIXPKGS_ALLOW_UNFREE = "1";
|
||||
GTK_THEME = "catppuccin-macchiato-mauve-compact";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue