116 lines
2.1 KiB
Nix
116 lines
2.1 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
./adb.nix
|
|
./bin
|
|
./direnv.nix
|
|
./git.nix
|
|
./ledger
|
|
./nix.nix
|
|
./shell
|
|
./spotify.nix
|
|
./ssh.nix
|
|
./yubikey.nix
|
|
];
|
|
modules.cli.shell = let
|
|
editor = "emacsclient -t -a 'emacs -t'";
|
|
cmdSub = command:
|
|
"${
|
|
if (config.modules.cli.shell.name == "fish") then "" else "$"
|
|
}${command}";
|
|
in {
|
|
name = "fish";
|
|
abbreviations = {
|
|
us = "systemctl --user";
|
|
rs = "doas systemctl";
|
|
|
|
ga = "git add";
|
|
gb = "git branch";
|
|
gc = "git commit";
|
|
gco = "git checkout";
|
|
gd = "git diff";
|
|
gds = "git diff --staged";
|
|
gp = "git push";
|
|
gf = "git fetch";
|
|
gF = "git pull";
|
|
gs = "git status";
|
|
};
|
|
aliases = {
|
|
ls = "exa -lh --icons --git";
|
|
cat = "bat";
|
|
feh = "feh --auto-zoom --scale-down";
|
|
grep = "rg";
|
|
rm = "rm -i";
|
|
mv = "mv -i";
|
|
|
|
ssh = "kitty +kitten ssh";
|
|
|
|
nix-switch = "doas nixos-rebuild switch --flake ~/.dotfiles";
|
|
nix-boot = "doas nixos-rebuild boot --flake ~/.dotfiles";
|
|
nix-lock = "pushd ~/.dotfiles && nix flake update && popd";
|
|
|
|
emacs = editor;
|
|
|
|
nixpkgs-review = "nixpkgs-review-checks";
|
|
|
|
latexwatch =
|
|
''find -type f -name "*.tex" | entr -c latexmk -pdf -silent'';
|
|
|
|
};
|
|
variables = { EDITOR = editor; };
|
|
};
|
|
home-manager.users.moritz = {
|
|
home.packages = with pkgs; [
|
|
# archives
|
|
p7zip
|
|
unzip
|
|
zip
|
|
|
|
# file management
|
|
ranger
|
|
trash-cli
|
|
|
|
# monitoring
|
|
htop
|
|
bottom
|
|
|
|
# ripping
|
|
abcde
|
|
handbrake
|
|
|
|
# nix
|
|
nixpkgs-review
|
|
comma
|
|
nix-index
|
|
|
|
# other
|
|
arduino
|
|
cht-sh
|
|
du-dust
|
|
duf
|
|
entr
|
|
hub
|
|
neofetch
|
|
tmux
|
|
ttyper
|
|
up
|
|
viu
|
|
];
|
|
programs = {
|
|
bat.enable = true;
|
|
command-not-found.enable = true;
|
|
exa.enable = true;
|
|
fzf.enable = true;
|
|
gpg.enable = true;
|
|
starship.enable = true;
|
|
};
|
|
};
|
|
age.secrets = {
|
|
github = {
|
|
file = ../../secrets/github.age;
|
|
owner = "1000";
|
|
};
|
|
};
|
|
}
|