-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Showing
15 changed files
with
1,138 additions
and
247 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,73 @@ | ||
{pkgs, ...}: { | ||
home.packages = with pkgs; [zsh-forgit gitflow]; | ||
programs.git = { | ||
enable = true; | ||
userName = "sioodmy"; | ||
userEmail = "hello@sioodmy.dev"; | ||
signing = { | ||
key = "056CFD15A9F99B0E"; | ||
signByDefault = false; | ||
}; | ||
ignores = [ | ||
".cache/" | ||
".DS_Store" | ||
".idea/" | ||
"*.swp" | ||
"*.elc" | ||
"auto-save-list" | ||
".direnv/" | ||
"node_modules" | ||
"result" | ||
"result-*" | ||
]; | ||
extraConfig = { | ||
init = {defaultBranch = "main";}; | ||
delta = { | ||
options.map-styles = "bold purple => syntax #ca9ee6, bold cyan => syntax #8caaee"; | ||
line-numbers = true; | ||
}; | ||
branch.autosetupmerge = "true"; | ||
push.default = "current"; | ||
merge.stat = "true"; | ||
core.whitespace = "fix,-indent-with-non-tab,trailing-space,cr-at-eol"; | ||
repack.usedeltabaseoffset = "true"; | ||
pull.ff = "only"; | ||
rebase = { | ||
autoSquash = true; | ||
autoStash = true; | ||
}; | ||
rerere = { | ||
autoupdate = true; | ||
enabled = true; | ||
}; | ||
}; | ||
lfs.enable = true; | ||
delta.enable = true; | ||
aliases = { | ||
essa = "push --force"; | ||
co = "checkout"; | ||
fuck = "commit --amend -m"; | ||
c = "commit -m"; | ||
ca = "commit -am"; | ||
forgor = "commit --amend --no-edit"; | ||
graph = "log --all --decorate --graph --oneline"; | ||
oops = "checkout --"; | ||
l = "log"; | ||
r = "rebase"; | ||
s = "status --short"; | ||
ss = "status"; | ||
d = "diff"; | ||
ps = "!git push origin $(git rev-parse --abbrev-ref HEAD)"; | ||
pl = "!git pull origin $(git rev-parse --abbrev-ref HEAD)"; | ||
af = "!git add $(git ls-files -m -o --exclude-standard | sk -m)"; | ||
st = "status"; | ||
br = "branch"; | ||
df = "!git hist | peco | awk '{print $2}' | xargs -I {} git diff {}^ {}"; | ||
hist = '' | ||
log --pretty=format:"%Cgreen%h %Creset%cd %Cblue[%cn] %Creset%s%C(yellow)%d%C(reset)" --graph --date=relative --decorate --all''; | ||
llog = '' | ||
log --graph --name-status --pretty=format:"%C(red)%h %C(reset)(%cd) %C(green)%an %Creset%s %C(yellow)%d%Creset" --date=relative''; | ||
edit-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; hx `f`"; | ||
}; | ||
}; | ||
} |
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
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 |
---|---|---|
|
@@ -7,5 +7,6 @@ | |
./nix.nix | ||
./users.nix | ||
./openssh.nix | ||
./syncthing.nix | ||
]; | ||
} |
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
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,31 @@ | ||
{pkgs, ...}: { | ||
services.syncthing = { | ||
enable = true; | ||
user = "sioodmy"; | ||
dataDir = "/persist/home/sioodmy/.config/syncthing"; | ||
configDir = "/persist/home/sioodmy/.config/syncthing"; | ||
guiAddress = "127.0.0.1:8384"; | ||
|
||
openDefaultPorts = true; | ||
}; | ||
boot.kernel.sysctl."fs.inotify.max_user_watches" = 1048576; | ||
|
||
# credits: Ramblurr | ||
# https://github.com/Ramblurr/nixcfg/blob/7343640bd4f5474eeba3b115424c2b0ccc809858/hosts/unstable/x86_64-linux/quine/syncthing.nix#L103 | ||
# FIX: home-manager impermanence | ||
# when using with home-manager impermanence we need to ensure that home-manager activates before | ||
# syncthing. otherwise the syncthing init will create ~/.config/syncthing, but ~/.config will be created | ||
# with root:root ownership. | ||
systemd.services.syncthing.after = ["home-manager-sioodmy.service"]; | ||
systemd.services.syncthing-init.after = ["home-manager-sioodmy.service"]; | ||
systemd.services.syncthing-init.serviceConfig.ExecStartPost = pkgs.writeShellScript "rm-sync-dir" '' | ||
if [ -d "$HOME/Sync" ] | ||
then | ||
rmdir "$HOME/Sync" | ||
fi | ||
''; | ||
|
||
# yet another hacky workaround for race condition with impermanence | ||
# https://github.com/nix-community/impermanence/issues/94 | ||
systemd.services.syncthing.serviceConfig.Type = "idle"; | ||
} |
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
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,24 @@ | ||
{pkgs, ...}: { | ||
nixpkgs.config.allowUnfree = false; | ||
environment.systemPackages = with pkgs; [ | ||
overskride | ||
dart-sass | ||
|
||
libreoffice-fresh | ||
ytmdl | ||
thunderbird | ||
nicotine-plus | ||
gnome.gnome-calculator | ||
brave | ||
inkscape | ||
ledger-live-desktop | ||
ledger_agent | ||
tdesktop | ||
calcurse | ||
pulseaudio | ||
signal-desktop | ||
gimp | ||
wireshark | ||
keepassxc | ||
]; | ||
} |