Archived
Watch
1
0
Fork
You've already forked nixos
0

nvf and stuff

This commit is contained in:
asnev 2026-10-23 10:00:32 +07:00
commit d6521a5be2
Signed by: asnev
SSH key fingerprint: SHA256:8hagYq9hDUuS5clQ78FKhIoQDvg5crdkYMHX+3g7wB4
3 changed files with 183 additions and 178 deletions

View file

@ -4,7 +4,7 @@
...
}: {
imports = [
inputs.nvf.homeManagerModules.default
./fastfetch.nix
./nvf.nix
];
@ -20,8 +20,7 @@
karp
keepassxc
pdfarranger
# emacs
emacs
proton-vpn
# multimedia
furnace
corrscope
@ -38,179 +37,91 @@
# emulation
(unstable.bottles.override {removeWarningPopup = true;})
# devel
emacs
unstable.racket
unstable.lazygit
unstable.opencode
treesitter-cli
];
programs = {
home-manager.enable = true;
ssh = {
enable = true;
enableDefaultConfig = false;
settings."*" = {
ForwardAgent = false;
AddKeysToAgent = "yes"; # no passphrase, silent auto-add
Compression = false;
ServerAliveInterval = 0;
ServerAliveCountMax = 3;
HashKnownHosts = false;
UserKnownHostsFile = "~/.ssh/known_hosts";
ControlMaster = "no";
ControlPath = "~/.ssh/master-%r@%n:%p";
ControlPersist = "no";
};
};
git = {
enable = true;
settings.user.name = "asnev";
settings.user.email = "notasnev@proton.me";
signing.key = "/home/coyote/.ssh/id_ed25519.pub";
signing.format = "ssh";
includes = [
{
condition = "gitdir:/home/coyote/NixOS/";
contents.core.sshCommand = "ssh -i /home/coyote/.ssh/id_ed25519";
}
];
};
fish.enable = true;
fish.shellAbbrs = {
l = "eza --grid --all";
ll = "eza --long --all";
ls = "eza";
".." = "cd ..";
"..." = "cd ../..";
};
tmux = {
enable = true;
clock24 = true;
baseIndex = 1;
shortcut = "b";
keyMode = "vi";
terminal = "tmux-256color";
escapeTime = 10;
extraConfig = ''
set -g pane-base-index 1
set-window-option -g pane-base-index 1
set-option -g renumber-windows on
set-option -g status-right "\"#W\""
set -ga terminal-overrides ",*:RGB"
set -g mouse on
set -g set-clipboard on
'';
};
yt-dlp.enable = true;
yt-dlp.package = pkgs.unstable.yt-dlp;
starship = {
enable = true;
package = pkgs.unstable.starship;
enableTransience = true;
settings = {
"$schema" = "https://starship.rs/config-schema.json";
git_status = {
ahead = ">";
behind = "<";
diverged = "<>";
renamed = "r";
deleted = "d";
};
};
};
obs-studio.enable = true;
obs-studio.plugins = with pkgs.obs-studio-plugins; [
input-overlay
droidcam-obs
];
fastfetch.enable = true;
fastfetch.settings = {
"$schema" = "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json";
logo.type = "small";
logo.padding.top = 4;
logo.padding.left = 3;
logo.padding.right = 4;
display.separator = " ";
modules = [
{
key = "╭─────────╮";
type = "custom";
}
{
key = "│ {#31}user {#keys}│";
type = "title";
format = "{user-name}";
}
{
key = "│ {#32}host {#keys}│";
type = "title";
format = "{host-name}";
}
{
key = "│ {#33}uptime {#keys}│";
type = "uptime";
}
{
key = "│ {#34}distro {#keys}│";
type = "os";
}
{
key = "│ {#35}kernel {#keys}│";
type = "kernel";
}
{
key = "│ {#36}desktop {#keys}│";
type = "de";
}
{
key = "│ {#31}term {#keys}│";
type = "terminal";
}
{
key = "│ {#32}shell {#keys}│";
type = "shell";
}
{
key = "│ {#33}cpu {#keys}│";
type = "cpu";
showPeCoreCount = true;
}
{
key = "│ {#34}disk {#keys}│";
type = "disk";
folders = "/";
}
{
key = "│ {#35}memory {#keys}│";
type = "memory";
}
{
key = "│ {#36}network {#keys}│";
type = "localip";
format = "{ipv4} ({ifname})";
}
{
key = "├─────────┤";
type = "custom";
}
{
key = "│ {#39}colors {#keys}│";
type = "colors";
symbol = "circle";
}
{
key = "╰─────────╯";
type = "custom";
}
];
programs.ssh = {
enable = true;
enableDefaultConfig = false;
settings."*" = {
ForwardAgent = false;
AddKeysToAgent = "yes"; # no passphrase, silent auto-add
Compression = false;
ServerAliveInterval = 0;
ServerAliveCountMax = 3;
HashKnownHosts = false;
UserKnownHostsFile = "~/.ssh/known_hosts";
ControlMaster = "no";
ControlPath = "~/.ssh/master-%r@%n:%p";
ControlPersist = "no";
};
};
programs.git = {
enable = true;
settings.user.name = "asnev";
settings.user.email = "notasnev@proton.me";
signing.key = "/home/coyote/.ssh/id_ed25519.pub";
signing.format = "ssh";
includes = [
{
condition = "gitdir:/home/coyote/NixOS/";
contents.core.sshCommand = "ssh -i /home/coyote/.ssh/id_ed25519";
}
];
};
programs.fish.enable = true;
programs.fish.shellAbbrs = {
l = "eza --grid --all";
ll = "eza --long --all";
ls = "eza";
".." = "cd ..";
"..." = "cd ../..";
cat = "bat";
};
programs.tmux = {
enable = true;
clock24 = true;
baseIndex = 1;
keyMode = "vi";
terminal = "tmux-256color";
escapeTime = 10;
extraConfig = ''
set -g pane-base-index 1
set-window-option -g pane-base-index 1
set-option -g renumber-windows on
set-option -g status-right "\"#W\""
set -ga terminal-overrides ",*:RGB"
set -g mouse on
set -g set-clipboard on
'';
};
programs.yt-dlp.enable = true;
programs.yt-dlp.package = pkgs.unstable.yt-dlp;
programs.starship = {
enable = true;
package = pkgs.unstable.starship;
enableTransience = true;
settings = {
"$schema" = "https://starship.rs/config-schema.json";
git_status = {
ahead = ">";
behind = "<";
diverged = "<>";
renamed = "r";
deleted = "d";
};
};
};
programs.obs-studio.enable = true;
programs.obs-studio.plugins = with pkgs.obs-studio-plugins; [
input-overlay
droidcam-obs
];
}

83
home/coyote/fastfetch.nix Normal file
View file

@ -0,0 +1,83 @@
{pkgs, ...}: {
programs.fastfetch.enable = true;
programs.fastfetch.settings = {
"$schema" = "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json";
logo.type = "small";
logo.padding.top = 4;
logo.padding.left = 3;
logo.padding.right = 4;
display.separator = " ";
modules = [
{
key = "╭─────────╮";
type = "custom";
}
{
key = "│ {#31}user {#keys}│";
type = "title";
format = "{user-name}";
}
{
key = "│ {#32}host {#keys}│";
type = "title";
format = "{host-name}";
}
{
key = "│ {#33}uptime {#keys}│";
type = "uptime";
}
{
key = "│ {#34}distro {#keys}│";
type = "os";
}
{
key = "│ {#35}kernel {#keys}│";
type = "kernel";
}
{
key = "│ {#36}desktop {#keys}│";
type = "de";
}
{
key = "│ {#31}term {#keys}│";
type = "terminal";
}
{
key = "│ {#32}shell {#keys}│";
type = "shell";
}
{
key = "│ {#33}cpu {#keys}│";
type = "cpu";
showPeCoreCount = true;
}
{
key = "│ {#34}disk {#keys}│";
type = "disk";
folders = "/";
}
{
key = "│ {#35}memory {#keys}│";
type = "memory";
}
{
key = "│ {#36}network {#keys}│";
type = "localip";
format = "{ipv4} ({ifname})";
}
{
key = "├─────────┤";
type = "custom";
}
{
key = "│ {#39}colors {#keys}│";
type = "colors";
symbol = "circle";
}
{
key = "╰─────────╯";
type = "custom";
}
];
};
}

View file

@ -1,4 +1,15 @@
{...}: {
{
inputs,
pkgs,
...
}: {
imports = [inputs.nvf.homeManagerModules.default];
home.packages = with pkgs; [
unstable.lazygit
unstable.tree-sitter
];
programs.nvf = {
enable = true;
defaultEditor = true;
@ -89,7 +100,7 @@
languages.nix = {
enable = true;
treesitter.enable = true;
lsp.enable = false;
lsp.enable = true;
format.enable = false;
extraDiagnostics.enable = false;
};