2021-09-14 20:55:50 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
2022-03-23 12:44:08 +01:00
|
|
|
imports = [
|
|
|
|
./adb.nix
|
|
|
|
./bin
|
|
|
|
./direnv.nix
|
|
|
|
./git.nix
|
2022-06-18 19:32:14 +02:00
|
|
|
./ledger
|
2022-03-23 12:44:08 +01:00
|
|
|
./nix.nix
|
|
|
|
./shell
|
|
|
|
./spotify.nix
|
2022-06-18 19:32:14 +02:00
|
|
|
./ssh.nix
|
2022-04-18 12:27:54 +02:00
|
|
|
./yubikey.nix
|
2022-03-23 12:44:08 +01:00
|
|
|
];
|
2022-06-02 18:16:04 +02:00
|
|
|
modules.cli.shell = let
|
|
|
|
editor = "emacsclient -t -a 'emacs -t'";
|
|
|
|
cmdSub = command:
|
|
|
|
"${
|
|
|
|
if (config.modules.cli.shell.name == "fish") then "" else "$"
|
|
|
|
}${command}";
|
2022-03-22 19:33:01 +01:00
|
|
|
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";
|
2022-05-26 13:49:39 +02:00
|
|
|
gf = "git fetch";
|
|
|
|
gF = "git pull";
|
2022-03-22 19:33:01 +01:00
|
|
|
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";
|
|
|
|
|
2022-06-03 15:17:13 +02:00
|
|
|
ssh = "kitty +kitten ssh";
|
2022-03-22 19:33:01 +01:00
|
|
|
|
|
|
|
nix-switch = "doas nixos-rebuild switch --flake ~/.dotfiles";
|
|
|
|
nix-boot = "doas nixos-rebuild boot --flake ~/.dotfiles";
|
2022-06-27 18:00:30 +02:00
|
|
|
nix-lock = "pushd ~/.dotfiles && nix flake update && popd";
|
2022-03-22 19:33:01 +01:00
|
|
|
|
|
|
|
emacs = editor;
|
2022-04-18 12:23:45 +02:00
|
|
|
|
2022-04-30 13:08:29 +02:00
|
|
|
nixpkgs-review = "nixpkgs-review-checks";
|
|
|
|
|
2022-06-02 18:16:04 +02:00
|
|
|
nixpkgs-pr =
|
|
|
|
"nixpkgs-review pr --token ${cmdSub "cat /run/agenix/github"}";
|
2022-06-02 18:08:34 +02:00
|
|
|
|
|
|
|
latexwatch =
|
|
|
|
''find -type f -name "*.tex" | entr -c latexmk -pdf -silent'';
|
2022-06-07 14:42:05 +02:00
|
|
|
|
2022-03-22 19:33:01 +01:00
|
|
|
};
|
2022-06-18 19:32:14 +02:00
|
|
|
variables = { EDITOR = editor; };
|
2022-03-22 19:33:01 +01:00
|
|
|
};
|
2021-12-04 11:44:01 +01:00
|
|
|
home-manager.users.moritz = {
|
2021-12-04 11:45:01 +01:00
|
|
|
home.packages = with pkgs; [
|
|
|
|
# archives
|
|
|
|
p7zip
|
2022-05-26 13:49:27 +02:00
|
|
|
unzip
|
2021-12-04 11:45:01 +01:00
|
|
|
|
2021-12-24 12:44:09 +01:00
|
|
|
# file management
|
2021-12-04 11:45:01 +01:00
|
|
|
ranger
|
|
|
|
trash-cli
|
|
|
|
|
2022-03-21 13:20:46 +01:00
|
|
|
# monitoring
|
|
|
|
htop
|
2022-04-18 12:20:28 +02:00
|
|
|
bottom
|
2022-03-21 13:20:46 +01:00
|
|
|
|
2021-12-04 11:45:01 +01:00
|
|
|
# fetcher
|
|
|
|
neofetch
|
2021-12-24 12:44:09 +01:00
|
|
|
|
|
|
|
# typing
|
|
|
|
ttyper
|
2022-01-21 22:06:47 +01:00
|
|
|
|
|
|
|
# ripping
|
|
|
|
abcde
|
|
|
|
handbrake
|
2022-03-21 13:20:46 +01:00
|
|
|
|
|
|
|
# utility
|
|
|
|
cht-sh
|
2022-05-26 13:49:09 +02:00
|
|
|
du-dust
|
2022-05-26 13:49:27 +02:00
|
|
|
duf
|
|
|
|
up
|
|
|
|
viu
|
2022-06-02 18:08:34 +02:00
|
|
|
entr
|
2022-06-02 18:09:06 +02:00
|
|
|
tmux
|
2022-05-26 13:49:27 +02:00
|
|
|
|
2022-05-26 13:47:52 +02:00
|
|
|
arduino
|
2022-05-26 13:49:27 +02:00
|
|
|
|
|
|
|
# nix
|
2022-04-18 12:23:45 +02:00
|
|
|
nixpkgs-review
|
2022-05-09 21:50:08 +02:00
|
|
|
comma
|
|
|
|
nix-index
|
2021-12-04 11:45:01 +01:00
|
|
|
];
|
2021-12-04 11:44:01 +01:00
|
|
|
programs = {
|
|
|
|
bat.enable = true;
|
2022-03-21 13:20:46 +01:00
|
|
|
command-not-found.enable = true;
|
|
|
|
exa.enable = true;
|
|
|
|
fzf.enable = true;
|
2022-01-24 12:40:44 +01:00
|
|
|
gpg.enable = true;
|
2022-03-21 13:20:46 +01:00
|
|
|
starship.enable = true;
|
2021-12-04 11:44:01 +01:00
|
|
|
};
|
|
|
|
};
|
2022-04-18 12:23:45 +02:00
|
|
|
age.secrets = {
|
|
|
|
github = {
|
|
|
|
file = ../../secrets/github.age;
|
|
|
|
owner = "1000";
|
|
|
|
};
|
|
|
|
};
|
2021-09-14 20:55:50 +02:00
|
|
|
}
|