initialization

This commit is contained in:
biscuit
2025-05-19 17:53:19 -05:00
commit c1e4ef47f3
30 changed files with 451 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
{...}: {
programs.fastfetch.enable = true;
}
+3
View File
@@ -0,0 +1,3 @@
{ ... }: {
programs.git.enable = true;
}
+3
View File
@@ -0,0 +1,3 @@
{...}: {
wayland.windowManager.hyprland.enable = true;
}
+8
View File
@@ -0,0 +1,8 @@
{pkgs, ...}: {
programs.kitty.enable = true;
programs.kitty.settings = {
confirm_os_window_close = 0;
window_padding_width = 10;
font_size = 12.0;
};
}
+21
View File
@@ -0,0 +1,21 @@
{pkgs, ...}: let
nvimSource = pkgs.fetchFromGitea {
domain = "git.sakamoto.dev";
owner = "kenji";
repo = "nvim";
rev = "30449ae49cae92ec42356a49a3d2a3b4b7db0119";
sha256 = "sha256-YbP814fKOFuCWBRwlccd4nx/h8sdMgiJQu54thRLsK8=";
};
in {
programs.neovim.enable = true;
home.packages = with pkgs; [
lazygit
ripgrep
];
home.file.".config/nvim" = {
# source = /home/biscuit/Nixos/packages/nvim/nvchad;
source = nvimSource;
recursive = true;
force = true;
};
}
+64
View File
@@ -0,0 +1,64 @@
{pkgs, ...}: {
home.packages = with pkgs; [
zoxide
oh-my-posh
];
programs.zsh.enable = true;
programs.zoxide.enable = true;
programs.oh-my-posh.enable = true;
home.file.".config/oh-my-posh/config.omp.json" = {
source = ./custom/config.omp.json;
force = true;
};
programs.zsh = {
plugins = [
{
name = "vi-mode";
src = pkgs.zsh-vi-mode;
file = "share/zsh-vi-mode/zsh-vi-mode.plugin.zsh";
}
{
name = "autosuggestion";
src = pkgs.zsh-autosuggestions;
file = "share/zsh-autosuggestions/zsh-autosuggestions.zsh";
}
];
enableCompletion = true;
syntaxHighlighting.enable = true;
shellAliases = {
ll = "ls -l";
upd = "sudo nixos-rebuild switch --flake ~/Nixos/#biscuit";
hupd = "home-manager switch --flake ~/Nixos/#biscuit --impure";
agu = "pkill gjs & ags run ~/Nixos/packages/ags/custom/app.ts &";
};
history.size = 10000;
oh-my-zsh = {
plugins = [];
enable = true;
theme = "robbyrussell";
extraConfig = ''
zstyle ':completion:*' completer _expand _complete _ignored _approximate _expand_alias
zstyle ':autocomplete:*' default-context curcontext
zstyle ':autocomplete:*' min-input 0
setopt HIST_FIND_NO_DUPS
autoload -Uz compinit
compinit
# setopt autocd # cd without writing 'cd'
setopt globdots # show dotfiles in autocomplete list
'';
};
initContent = ''
# Oh-My-Posh initialization for Zsh
eval "$(oh-my-posh init zsh --config ~/.config/oh-my-posh/config.omp.json)"
# zsh-autocomplete
bindkey -M menuselect '^M' .accept-line # run code when selected completion
'';
};
}
+55
View File
@@ -0,0 +1,55 @@
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"foreground": "#ffdd86",
"style": "plain",
"template": "{{ .UserName }}@{{ .HostName }} ",
"type": "session"
},
{
"foreground": "#42a9ff",
"style": "plain",
"properties": {
"style": "full"
},
"template": "{{ .Path }} ",
"type": "path"
},
{
"properties": {
"branch_icon": "",
"fetch_status": true
},
"style": "plain",
"template": "git:{{ if or (.Working.Changed) (.Staging.Changed) (gt .StashCount 0) }}<#ffdd86>{{ .HEAD }}</>{{ else }}{{ .HEAD }}{{ end }}{{ if .Staging.Changed }} <#98c379>{{ .Staging.String }}</>{{ end }}{{ if .Working.Changed }} <#d16971>{{ .Working.String }}</>{{ end }}",
"type": "git"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "#ffdd86",
"foreground_templates": [
"{{ if gt .Code 0 }}#42a9ff{{ end }}"
],
"properties": {
"always_enabled": true
},
"style": "plain",
"template": "> ",
"type": "status"
}
],
"type": "prompt"
}
],
"version": 3
}