129 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 *

This commit is contained in:
Max Känner 2024-03-09 21:24:44 +01:00
parent b282c859d3
commit 63422ffe6d
4 changed files with 22 additions and 26 deletions

View File

@ -84,12 +84,9 @@
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
# $ nix search wget # $ nix search wget
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
neovim
wget wget
fprintd fprintd
home-manager home-manager
git
alejandra
]; ];
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [

View File

@ -63,7 +63,7 @@
]; ];
home.sessionVariables = { home.sessionVariables = {
EDITOR = "nvim"; EDITOR = "${pkgs.neovim}/bin/nvim";
}; };
xdg.enable = true; xdg.enable = true;

View File

@ -10,26 +10,25 @@
historySubstringSearch.enable = true; historySubstringSearch.enable = true;
shellAliases = { shellAliases = {
ls = "${pkgs.eza}/bin/eza --icons -a --group-directories-first"; ls = "${pkgs.eza}/bin/eza --icons -a --group-directories-first";
diff = "diff --color=auto"; diff = "${pkgs.diffutils}/bin/diff --color=auto";
grep = "grep --color=auto"; grep = "${pkgs.gnugrep}/bin/grep --color=auto";
ip = "ip --color=auto"; ip = "${pkgs.iproute2}/bin/ip --color=auto";
mkdir = "mkdir -p"; mkdir = "${pkgs.coreutils}/bin/mkdir -p";
gst = "git status"; gst = "${pkgs.git}/bin/git status";
gc = "git commit"; gc = "${pkgs.git}/bin/git commit";
ga = "git add"; ga = "${pkgs.git}/bin/git add";
gpl = "git pull"; gpl = "${pkgs.git}/bin/git pull";
gpu = "git push"; gpu = "${pkgs.git}/bin/git push";
gd = "git diff"; gd = "${pkgs.git}/bin/git diff";
gch = "git checkout"; gch = "${pkgs.git}/bin/git checkout";
gs = "git switch"; gs = "${pkgs.git}/bin/git switch";
gre = "git restore"; gre = "${pkgs.git}/bin/git restore";
gr = "git remote"; gr = "${pkgs.git}/bin/git remote";
gcl = "git clone"; gcl = "${pkgs.git}/bin/git clone";
glg = "git log --graph --abbrev-commit --decorate --format=format:'%C(bold green)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold yellow)(%ar)%C(reset)%C(auto)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all"; glg = "${pkgs.git}/bin/git log --graph --abbrev-commit --decorate --format=format:'%C(bold green)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold yellow)(%ar)%C(reset)%C(auto)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all";
gb = "git branch"; gb = "${pkgs.git}/bin/git branch";
gm = "git merge"; gm = "${pkgs.git}/bin/git merge";
gf = "git fetch"; gf = "${pkgs.git}/bin/git fetch";
rebuild = "~/dotfiles/nixos/rebuild.sh";
}; };
syntaxHighlighting.enable = true; syntaxHighlighting.enable = true;
syntaxHighlighting.highlighters = ["main" "brackets"]; syntaxHighlighting.highlighters = ["main" "brackets"];

View File

@ -5,13 +5,13 @@
destination = "/bin/rebuild"; destination = "/bin/rebuild";
executable = true; executable = true;
text = '' text = ''
#!/usr/bin/env bash #!${pkgs.bash}/bin/bash
# A rebuild script that commits on a successful build # A rebuild script that commits on a successful build
set -e set -e
# cd to your config dir # cd to your config dir
pushd ${../..} pushd ~/dotfiles/nixos/
# Edit your config # Edit your config
$EDITOR $EDITOR