Compare commits
4 commits
f3c2a73d38
...
eb041732fc
| Author | SHA1 | Date | |
|---|---|---|---|
| eb041732fc | |||
| feade6d998 | |||
| 1b95bf2d24 | |||
| 313b19f7cf |
6 changed files with 75 additions and 10 deletions
|
|
@ -14,6 +14,9 @@ in {
|
||||||
./programs/neovim/default.nix
|
./programs/neovim/default.nix
|
||||||
./programs/emacs/default.nix
|
./programs/emacs/default.nix
|
||||||
./programs/editorconfig
|
./programs/editorconfig
|
||||||
|
./programs/jq
|
||||||
|
./programs/fzf
|
||||||
|
./programs/git
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|
@ -61,7 +64,6 @@ in {
|
||||||
htop-vim # htop with vim bindings
|
htop-vim # htop with vim bindings
|
||||||
erdtree # du+tree had sex
|
erdtree # du+tree had sex
|
||||||
dua # ncdu but better
|
dua # ncdu but better
|
||||||
fzf
|
|
||||||
|
|
||||||
gopass
|
gopass
|
||||||
gopass-jsonapi
|
gopass-jsonapi
|
||||||
|
|
@ -148,15 +150,6 @@ in {
|
||||||
settings.git_protocol = "ssh";
|
settings.git_protocol = "ssh";
|
||||||
};
|
};
|
||||||
|
|
||||||
git = {
|
|
||||||
enable = true;
|
|
||||||
ignores = [ "*~" "*.swp" "result" "dist-newstyle" ];
|
|
||||||
userEmail = user.mail;
|
|
||||||
userName = user.fullName;
|
|
||||||
aliases = { st = "status"; };
|
|
||||||
extraConfig = { init.defaultBranch = "main"; };
|
|
||||||
};
|
|
||||||
|
|
||||||
gpg = {
|
gpg = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = { homedir = "~/.local/share/gnupg"; };
|
settings = { homedir = "~/.local/share/gnupg"; };
|
||||||
|
|
|
||||||
5
home/alex/programs/fzf/default.nix
Normal file
5
home/alex/programs/fzf/default.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.fzf = { enable = true; };
|
||||||
|
}
|
||||||
49
home/alex/programs/git/default.nix
Normal file
49
home/alex/programs/git/default.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.git = {
|
||||||
|
enable = true;
|
||||||
|
lfs.enable = true;
|
||||||
|
ignores = [ "*~" "*.swp" "result" "dist-newstyle" ];
|
||||||
|
signing = {
|
||||||
|
key = "41A6D13FECA21280";
|
||||||
|
signByDefault = false;
|
||||||
|
};
|
||||||
|
delta = { enable = true; };
|
||||||
|
# TODO create option for my own account meta data
|
||||||
|
userEmail = "me@failco.de";
|
||||||
|
userName = "Alexander Kobjolke";
|
||||||
|
aliases = {
|
||||||
|
a = "add";
|
||||||
|
c = "commit";
|
||||||
|
ca = "commit --amend";
|
||||||
|
can = "commit --amend --no-edit";
|
||||||
|
cl = "clone";
|
||||||
|
cm = "commit -m";
|
||||||
|
co = "checkout";
|
||||||
|
cp = "cherry-pick";
|
||||||
|
cpx = "cherry-pick -x";
|
||||||
|
d = "diff";
|
||||||
|
f = "fetch";
|
||||||
|
fo = "fetch origin";
|
||||||
|
fu = "fetch upstream";
|
||||||
|
lol = "log --graph --decorate --pretty=oneline --abbrev-commit";
|
||||||
|
lola = "log --graph --decorate --pretty=oneline --abbrev-commit --all";
|
||||||
|
pl = "pull";
|
||||||
|
pr = "pull -r";
|
||||||
|
ps = "push";
|
||||||
|
psf = "push -f";
|
||||||
|
rb = "rebase";
|
||||||
|
rbi = "rebase -i";
|
||||||
|
r = "remote";
|
||||||
|
ra = "remote add";
|
||||||
|
rr = "remote rm";
|
||||||
|
rv = "remote -v";
|
||||||
|
rs = "remote show";
|
||||||
|
st = "status";
|
||||||
|
};
|
||||||
|
extraConfig = { init.defaultBranch = "main"; };
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.git-cliff = { enable = true; };
|
||||||
|
}
|
||||||
5
home/alex/programs/jq/default.nix
Normal file
5
home/alex/programs/jq/default.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.jq = { enable = true; };
|
||||||
|
}
|
||||||
|
|
@ -16,6 +16,7 @@ in {
|
||||||
# Include the results of the hardware scan.
|
# Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
# <nixos-hardware/lenovo/legion/15ich>
|
# <nixos-hardware/lenovo/legion/15ich>
|
||||||
|
../../modules/appimage.nix
|
||||||
../../modules/wm/x.nix
|
../../modules/wm/x.nix
|
||||||
../../modules/wm/xmonad/default.nix
|
../../modules/wm/xmonad/default.nix
|
||||||
];
|
];
|
||||||
|
|
|
||||||
12
modules/appimage.nix
Normal file
12
modules/appimage.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
boot.binfmt.registrations.appimage = {
|
||||||
|
wrapInterpreterInShell = false;
|
||||||
|
interpreter = "${pkgs.appimage-run}/bin/appimage-run";
|
||||||
|
recognitionType = "magic";
|
||||||
|
offset = 0;
|
||||||
|
mask = "\\xff\\xff\\xff\\xff\\x00\\x00\\x00\\x00\\xff\\xff\\xff";
|
||||||
|
magicOrExtension = "\\x7fELF....AI\\x02";
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue