forked from UniverseBow/flake
init (cerulean template)
This commit is contained in:
commit
1b7b1e66f0
65 changed files with 5597 additions and 0 deletions
95
homes/lorkan/default.nix
Executable file
95
homes/lorkan/default.nix
Executable file
|
|
@ -0,0 +1,95 @@
|
|||
{pkgs, ...}: {
|
||||
imports = [
|
||||
./modules/cli/git.nix
|
||||
./modules/cli/ssh.nix
|
||||
|
||||
../modules/term/foot.nix
|
||||
../modules/shell/fish.nix
|
||||
../modules/editor/helix.nix
|
||||
../modules/editor/neovim
|
||||
|
||||
../modules/cli/bat.nix
|
||||
../modules/cli/btop.nix
|
||||
../modules/cli/hyfetch.nix
|
||||
|
||||
../modules/apps/firefox.nix
|
||||
../modules/apps/nixcord.nix
|
||||
|
||||
../modules/wm/hyprland
|
||||
../modules/de/mako.nix
|
||||
../modules/de/waybar
|
||||
];
|
||||
|
||||
home = {
|
||||
shellAliases = {
|
||||
# nix
|
||||
nd = "nix develop";
|
||||
rebuild = "nh os switch /etc/nixos";
|
||||
trybuild = "nh os test /etc/nixos";
|
||||
|
||||
# shell utilities
|
||||
ls = "eza --color=auto";
|
||||
l = "eza -Alh --color=auto --icons=auto";
|
||||
ll = "eza -lh --color=auto --icons=auto";
|
||||
li = "eza --color=auto --git-ignore";
|
||||
rgf = "rg --files | rg";
|
||||
watch = "viddy";
|
||||
};
|
||||
|
||||
pointerCursor = {
|
||||
gtk.enable = true;
|
||||
# x11.enable = true # dont enable since im on hyprland
|
||||
package = pkgs.bibata-cursors;
|
||||
name = "Bibata-Modern-Ice";
|
||||
size = 16;
|
||||
};
|
||||
|
||||
packages = with pkgs; [
|
||||
# for services.gnome-keyring
|
||||
gcr # provides org.gnome.keyring.SystemPrompter
|
||||
seahorse # gui
|
||||
|
||||
fuzzel
|
||||
speedtest-cli
|
||||
];
|
||||
};
|
||||
|
||||
gtk = {
|
||||
enable = true;
|
||||
font.name = "Victor Mono SemiBold 12";
|
||||
theme = {
|
||||
name = "Dracula";
|
||||
package = pkgs.dracula-theme;
|
||||
};
|
||||
iconTheme = {
|
||||
name = "kora";
|
||||
package = pkgs.kora-icon-theme;
|
||||
};
|
||||
# TODO: use a variable to mirror this cursor size
|
||||
# with the `home.pointerCurser.size`
|
||||
cursorTheme = {
|
||||
package = pkgs.bibata-cursors;
|
||||
name = "Bibata-Modern-Ice";
|
||||
size = 16;
|
||||
};
|
||||
};
|
||||
|
||||
qt = {
|
||||
enable = true;
|
||||
platformTheme.name = "gtk2";
|
||||
style.name = "gtk2";
|
||||
};
|
||||
|
||||
services = {
|
||||
gnome-keyring.enable = true;
|
||||
};
|
||||
|
||||
# Nicely reload system units when changing configs
|
||||
systemd.user.startServices = "sd-switch";
|
||||
|
||||
# XXX: WARNING: DO NOT MODIFY
|
||||
# XXX: WARNING: DO NOT MODIFY
|
||||
# XXX: WARNING: IM DEAD SERIOUS DO NOT CHANGE THIS VALUE
|
||||
# XXX: WARNING: IM DEAD SERIOUS DO NOT CHANGE THIS VALUE
|
||||
home.stateVersion = "25.11"; # Did you read the comment?
|
||||
}
|
||||
106
homes/lorkan/modules/cli/git.nix
Executable file
106
homes/lorkan/modules/cli/git.nix
Executable file
|
|
@ -0,0 +1,106 @@
|
|||
{pkgs, ...}: {
|
||||
home.packages = with pkgs; [
|
||||
delta # git diff viewer
|
||||
];
|
||||
|
||||
programs = {
|
||||
git = {
|
||||
enable = true;
|
||||
lfs.enable = true;
|
||||
|
||||
# signing = {
|
||||
# key = "YOUR-GPG-KEY-HERE";
|
||||
# format = "openpgp";
|
||||
# signByDefault = true;
|
||||
# };
|
||||
|
||||
settings = {
|
||||
user.name = "UniverseBow";
|
||||
user.email = "lorkandavidson@gmail.com";
|
||||
|
||||
alias = {
|
||||
s = "status";
|
||||
d = "diff";
|
||||
l = "log";
|
||||
c = "commit";
|
||||
p = "push";
|
||||
};
|
||||
|
||||
color.ui = true;
|
||||
core.editor = "vim";
|
||||
|
||||
# delta diff viewer
|
||||
core.pager = "delta";
|
||||
interactive.diffFilter = "delta --color-only";
|
||||
delta = {
|
||||
navigate = true;
|
||||
line-numbers = true;
|
||||
side-by-side = true;
|
||||
};
|
||||
merge.conflictStyle = "zdiff3";
|
||||
|
||||
init = {
|
||||
defaultBranch = "main";
|
||||
};
|
||||
url = {
|
||||
"git@github.com:" = {
|
||||
insteadOf = [
|
||||
"gh:"
|
||||
"github:"
|
||||
];
|
||||
};
|
||||
"https://gitlab.com/" = {
|
||||
insteadOf = [
|
||||
"gl:"
|
||||
"gitlab:"
|
||||
];
|
||||
};
|
||||
"git@codeberg.org:" = {
|
||||
insteadOf = [
|
||||
"cb:"
|
||||
"codeberg:"
|
||||
];
|
||||
};
|
||||
"git@tearforge.net/" = {
|
||||
insteadOf = [
|
||||
"cry:"
|
||||
"forge:"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
lazygit = {
|
||||
enable = true;
|
||||
enableFishIntegration = true;
|
||||
enableZshIntegration = true;
|
||||
|
||||
shellWrapperName = "lg";
|
||||
|
||||
settings = {
|
||||
gui = {
|
||||
useHunkModeInStagingView = false;
|
||||
|
||||
skipDiscardChangeWarning = false;
|
||||
skipStashWarning = true;
|
||||
|
||||
animateExplosion = true; # FUCK YEAH
|
||||
|
||||
theme = {
|
||||
lightTheme = false;
|
||||
activeBorderColor = ["green" "bold"];
|
||||
inactiveBorderColor = ["white"];
|
||||
selectedLineBgColor = ["default"];
|
||||
};
|
||||
};
|
||||
|
||||
git.pagers = [
|
||||
{
|
||||
pager = "delta --dark --pager=never";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
10
homes/lorkan/modules/cli/ssh.nix
Normal file
10
homes/lorkan/modules/cli/ssh.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{...}: {
|
||||
# set ssh profiles
|
||||
# WARNING: this DOES NOT start the ssh-agent
|
||||
# WARNING: for that you need to use `services.ssh-agent.enable`
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
forwardAgent = false;
|
||||
addKeysToAgent = "yes";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue