-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5f175e2
commit ef180d1
Showing
9 changed files
with
114 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ username, ... }: | ||
{ | ||
programs.nh = { | ||
enable = true; | ||
clean.enable = true; | ||
clean.extraArgs = "--keep-since 4d --keep 3"; | ||
flake = "/home/${username}/repos/nix/nixflakes"; | ||
|
||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
{ | ||
pkgs, | ||
home-manager, | ||
username, | ||
... | ||
}: | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ home-manager, username, ... }: | ||
{ username, ... }: | ||
{ | ||
home-manager.users.${username} = _: { | ||
home.file = { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
{ pkgs, ... }: | ||
{ | ||
# Shell Aliases inspired by: | ||
# https://github.com/donovanglover/nix-config | ||
# ---- System Configuration ---- | ||
programs.fish = { | ||
enable = true; | ||
interactiveShellInit = '' | ||
set fish_greeting | ||
nitch | ||
${pkgs.zoxide}/bin/zoxide init fish | source | ||
''; | ||
shellAliases = { | ||
|
||
b = "btop"; | ||
c = "clear"; | ||
e = "exit"; | ||
|
||
g = "git"; | ||
ga = "git add"; | ||
gaa = "git add --all"; | ||
gap = "git add --patch"; | ||
gapp = "git apply"; | ||
gb = "git branch --verbose"; | ||
gbr = "git branch --verbose --remotes"; | ||
gbd = "git branch --delete"; | ||
gbD = "git branch --delete --force"; | ||
gc = "git commit -m"; | ||
gca = "git commit --amend"; | ||
gcl = "git clone"; | ||
gco = "git checkout"; | ||
gcot = "git checkout --theirs"; | ||
gcp = "git cherry-pick --strategy-option theirs"; | ||
gcpx = "git cherry-pick --strategy-option theirs -x"; | ||
gd = "git diff"; | ||
gds = "git diff --staged"; | ||
gf = "git fetch"; | ||
gi = "git init"; | ||
gl = "git log --oneline --decorate --graph -n 10"; | ||
gm = "git merge"; | ||
gp = "git push"; | ||
gpu = "git pull"; | ||
gr = "git reset HEAD~"; | ||
gR = "git restore"; | ||
gRs = "git restore --staged"; | ||
gra = "git remote add"; | ||
gre = "git remote --verbose"; | ||
grh = "git reset HEAD"; | ||
grr = "git reset --hard HEAD~"; | ||
grb = "git rebase --interactive"; | ||
grbc = "git rebase --continue"; | ||
gs = "git status"; | ||
gsma = "git submodule add"; | ||
gsmu = "git submodule update --init --remote --recursive"; | ||
gst = "git stash"; | ||
gstp = "git stash pop"; | ||
gsw = "git switch"; | ||
gt = "git tag"; | ||
gts = "git tag -s"; | ||
|
||
gor = "go run ."; | ||
gob = "go build ."; | ||
|
||
n = "nvim"; | ||
t = "tmux"; | ||
r = "ranger"; | ||
|
||
nf = "nix flake"; | ||
nfu = "nix flake update"; | ||
nfc = "nix flake check"; | ||
nd = "nix develop"; | ||
nb = "nix build"; | ||
ns = "nix shell"; | ||
nr = "nix run"; | ||
ncg = "sudo nix-collect-garbage -d"; | ||
sw = "sudo nixos-rebuild switch --flake ."; | ||
vm = "nixos-rebuild build-vm --flake . && ./result/bin/run-nixos-vm && trash put result nixos.qcow2"; | ||
|
||
ci = "cargo init"; | ||
cin = "cargo info"; | ||
cu = "cargo update"; | ||
ca = "cargo add"; | ||
cab = "cargo add --build"; | ||
cad = "cargo add --dev"; | ||
cb = "cargo build"; | ||
cr = "cargo run"; | ||
cs = "cargo search"; | ||
ct = "cargo tree --depth 1"; | ||
cn = "cargo new"; | ||
crm = "cargo remove"; | ||
crmb = "cargo remove --build"; | ||
crmd = "cargo remove --dev"; | ||
cc = "cargo clippy"; | ||
cf = "cargo fmt"; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
{ | ||
pkgs, | ||
home-manager, | ||
username, | ||
... | ||
}: | ||
{ | ||
programs.starship = { | ||
enable = true; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters