mirror of
https://github.com/smg1024/nix-darwin.git
synced 2026-05-22 20:32:59 +09:00
feat: home-manager config files implemented
build not tested
This commit is contained in:
parent
248170c877
commit
54297f94fd
44 changed files with 852 additions and 60 deletions
58
home/core.nix
Normal file
58
home/core.nix
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
{pkgs, ...}: {
|
||||
home.packages = with pkgs; [
|
||||
# archives
|
||||
zip
|
||||
xz
|
||||
unzip
|
||||
p7zip
|
||||
(pkgs.writeShellApplication {
|
||||
name = "ns";
|
||||
runtimeInputs = with pkgs; [
|
||||
fzf
|
||||
nix-search-tv
|
||||
];
|
||||
text = builtins.readFile "${pkgs.nix-search-tv.src}/nixpkgs.sh";
|
||||
})
|
||||
# utils
|
||||
|
||||
aria2 # A lightweight multi-protocol & multi-source command-line download utility
|
||||
socat # replacement of openbsd-netcat
|
||||
nmap # A utility for network discovery and security auditing
|
||||
|
||||
# misc
|
||||
cowsay
|
||||
file
|
||||
which
|
||||
tree
|
||||
gnused
|
||||
gnutar
|
||||
gawk
|
||||
zstd
|
||||
caddy
|
||||
gnupg
|
||||
|
||||
# productivity
|
||||
glow # markdown previewer in terminal
|
||||
];
|
||||
|
||||
programs = {
|
||||
# terminal file manager
|
||||
yazi = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
settings = {
|
||||
manager = {
|
||||
show_hidden = true;
|
||||
sort_dir_first = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# skim provides a single executable: sk.
|
||||
# Basically anywhere you would want to use grep, try sk instead.
|
||||
skim = {
|
||||
enable = true;
|
||||
enableBashIntegration = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
41
home/default.nix
Executable file
41
home/default.nix
Executable file
|
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
pkgs,
|
||||
username,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./fd.nix
|
||||
./fzf.nix
|
||||
./gh.nix
|
||||
./git.nix
|
||||
./nvf
|
||||
./ripgrep.nix
|
||||
./starship.nix
|
||||
./zoxide.nix
|
||||
./zsh.nix
|
||||
./eza.nix
|
||||
./jq.nix
|
||||
];
|
||||
|
||||
home = {
|
||||
username = username;
|
||||
homeDirectory = "/Users/${username}";
|
||||
stateVersion = "25.11";
|
||||
|
||||
packages = with pkgs; [
|
||||
tree
|
||||
yq-go
|
||||
# nix-search-tv
|
||||
(writeShellApplication {
|
||||
name = "ns";
|
||||
runtimeInputs = with pkgs; [
|
||||
fzf
|
||||
nix-search-tv
|
||||
];
|
||||
text = builtins.readFile "${pkgs.nix-search-tv.src}/nixpkgs.sh";
|
||||
})
|
||||
];
|
||||
};
|
||||
|
||||
programs.home-manager.enable = true;
|
||||
}
|
||||
10
home/eza.nix
Normal file
10
home/eza.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
programs.eza = {
|
||||
enable = true;
|
||||
color = "auto";
|
||||
git = true;
|
||||
icons = "auto";
|
||||
enableZshIntegration = true;
|
||||
enableBashIntegration = true;
|
||||
};
|
||||
}
|
||||
7
home/fd.nix
Executable file
7
home/fd.nix
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
programs.fd = {
|
||||
enable = true;
|
||||
ignores = [ ".git/" ];
|
||||
hidden = true;
|
||||
};
|
||||
}
|
||||
7
home/fzf.nix
Executable file
7
home/fzf.nix
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
programs.fzf = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
enableBashIntegration = true;
|
||||
};
|
||||
}
|
||||
3
home/gh.nix
Executable file
3
home/gh.nix
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
programs.gh.enable = true;
|
||||
}
|
||||
15
home/git.nix
Executable file
15
home/git.nix
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
settings = {
|
||||
user = {
|
||||
name = "Poby";
|
||||
email = "87608318+smg1024@users.noreply.github.com";
|
||||
};
|
||||
init.defaultBranch = "master";
|
||||
push = {
|
||||
autoSetupRemote = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
3
home/jq.nix
Normal file
3
home/jq.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
programs.jq.enable = true;
|
||||
}
|
||||
6
home/nvf/appearance/theme.nix
Executable file
6
home/nvf/appearance/theme.nix
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
# theme
|
||||
enable = true;
|
||||
name = "tokyonight";
|
||||
style = "night";
|
||||
}
|
||||
11
home/nvf/core/augroups.nix
Executable file
11
home/nvf/core/augroups.nix
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
[
|
||||
# augroups
|
||||
{
|
||||
enable = true;
|
||||
name = "LastCursorGroup";
|
||||
}
|
||||
{
|
||||
enable = true;
|
||||
name = "HighlightYank";
|
||||
}
|
||||
]
|
||||
33
home/nvf/core/autocmds.nix
Executable file
33
home/nvf/core/autocmds.nix
Executable file
|
|
@ -0,0 +1,33 @@
|
|||
{lib, ...}: [
|
||||
# autocmds
|
||||
{
|
||||
enable = true;
|
||||
event = ["BufReadPost"];
|
||||
desc = "Return to last cursor position";
|
||||
group = "LastCursorGroup";
|
||||
callback = lib.generators.mkLuaInline ''
|
||||
function()
|
||||
local mark = vim.api.nvim_buf_get_mark(0, '"')
|
||||
local line_count = vim.api.nvim_buf_line_count(0)
|
||||
if mark[1] > 0 and mark[1] <= line_count then
|
||||
pcall(vim.api.nvim_win_set_cursor, 0, mark)
|
||||
end
|
||||
end
|
||||
'';
|
||||
}
|
||||
{
|
||||
enable = true;
|
||||
event = ["TextYankPost"];
|
||||
desc = "Highlight yanks on copy";
|
||||
group = "HighlightYank";
|
||||
pattern = ["*"];
|
||||
callback = lib.generators.mkLuaInline ''
|
||||
function()
|
||||
vim.hl.on_yank({
|
||||
higroup = "IncSearch",
|
||||
timeout = 250,
|
||||
})
|
||||
end
|
||||
'';
|
||||
}
|
||||
]
|
||||
8
home/nvf/core/clipboard.nix
Executable file
8
home/nvf/core/clipboard.nix
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
# clipboard
|
||||
enable = true;
|
||||
registers = "unnamedplus";
|
||||
providers = {
|
||||
wl-copy.enable = true;
|
||||
};
|
||||
}
|
||||
81
home/nvf/core/keymaps.nix
Executable file
81
home/nvf/core/keymaps.nix
Executable file
|
|
@ -0,0 +1,81 @@
|
|||
[
|
||||
# Keymaps
|
||||
{
|
||||
key = "<leader>ff";
|
||||
mode = "n";
|
||||
action = "<Cmd>FzfLua files<CR>";
|
||||
desc = "[F]ind files";
|
||||
}
|
||||
{
|
||||
key = "<leader>fg";
|
||||
mode = "n";
|
||||
action = "<Cmd>FzfLua live_grep_native<CR>";
|
||||
desc = "Live [G]rep";
|
||||
}
|
||||
{
|
||||
key = "<leader><leader>";
|
||||
mode = "n";
|
||||
action = "<Cmd>FzfLua buffers<CR>";
|
||||
desc = "Buffers";
|
||||
}
|
||||
{
|
||||
key = "<leader>fh";
|
||||
mode = "n";
|
||||
action = "<Cmd>FzfLua help_tags<CR>";
|
||||
desc = "[H]elp Tags";
|
||||
}
|
||||
{
|
||||
key = "<leader>fx";
|
||||
mode = "n";
|
||||
action = "<Cmd>FzfLua diagnostics_document<CR>";
|
||||
desc = "Diagnostics Document";
|
||||
}
|
||||
{
|
||||
key = "<leader>fX";
|
||||
mode = "n";
|
||||
action = "<Cmd>FzfLua diagnostics_workspace<CR>";
|
||||
desc = "Diagnostics Workspace";
|
||||
}
|
||||
{
|
||||
key = "<leader>fs";
|
||||
mode = "n";
|
||||
action = "<Cmd>FzfLua lsp_document_symbols<CR>";
|
||||
desc = "Document [S]ymbols";
|
||||
}
|
||||
{
|
||||
key = "<leader>fS";
|
||||
mode = "n";
|
||||
action = "<Cmd>FzfLua lsp_workspace_symbols<CR>";
|
||||
desc = "Workspace [S]ymbols";
|
||||
}
|
||||
{
|
||||
key = "<leader>fk";
|
||||
mode = "n";
|
||||
action = "<Cmd>FzfLua keymaps<CR>";
|
||||
desc = "[K]eymaps";
|
||||
}
|
||||
{
|
||||
key = "<leader>fb";
|
||||
mode = "n";
|
||||
action = "<Cmd>FzfLua builtin<CR>";
|
||||
desc = "[B]uiltin FZF";
|
||||
}
|
||||
{
|
||||
key = "<leader>fr";
|
||||
mode = "n";
|
||||
action = "<Cmd>FzfLua resume<CR>";
|
||||
desc = "[R]esume";
|
||||
}
|
||||
{
|
||||
key = "<leader>fo";
|
||||
mode = "n";
|
||||
action = "<Cmd>FzfLua oldfiles<CR>";
|
||||
desc = "[O]ld Files";
|
||||
}
|
||||
{
|
||||
key = "<leader>-";
|
||||
mode = "n";
|
||||
action = "<Cmd>Oil --float<CR>";
|
||||
desc = "Open Current Directory";
|
||||
}
|
||||
]
|
||||
12
home/nvf/core/options.nix
Executable file
12
home/nvf/core/options.nix
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
# options
|
||||
cursorlineopt = "line";
|
||||
wrap = false;
|
||||
cmdheight = 1;
|
||||
tabstop = 2;
|
||||
shiftwidth = 2;
|
||||
autoindent = true;
|
||||
termguicolors = true;
|
||||
splitbelow = true;
|
||||
splitright = true;
|
||||
}
|
||||
5
home/nvf/core/spellcheck.nix
Executable file
5
home/nvf/core/spellcheck.nix
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
# spellcheck
|
||||
enable = true;
|
||||
languages = [ "en" ];
|
||||
}
|
||||
4
home/nvf/core/undoFile.nix
Executable file
4
home/nvf/core/undoFile.nix
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
# undoFile
|
||||
enable = true;
|
||||
}
|
||||
43
home/nvf/default.nix
Executable file
43
home/nvf/default.nix
Executable file
|
|
@ -0,0 +1,43 @@
|
|||
{lib, ...}: let
|
||||
options = import ./core/options.nix;
|
||||
autocmds = import ./core/autocmds.nix {inherit lib;};
|
||||
augroups = import ./core/augroups.nix;
|
||||
keymaps = import ./core/keymaps.nix;
|
||||
fzf-lua = import ./plugins/fzf-lua.nix;
|
||||
mini = import ./plugins/mini.nix;
|
||||
utility = import ./plugins/utility.nix;
|
||||
binds = import ./plugins/binds.nix;
|
||||
terminal = import ./plugins/terminal.nix;
|
||||
theme = import ./appearance/theme.nix;
|
||||
lsp = import ./lsp/lsp.nix;
|
||||
treesitter = import ./lsp/treesitter.nix;
|
||||
autocomplete = import ./lsp/autocomplete.nix;
|
||||
languages = import ./lsp/languages;
|
||||
in {
|
||||
programs.nvf = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
vim = {
|
||||
inherit
|
||||
options
|
||||
autocmds
|
||||
augroups
|
||||
keymaps
|
||||
fzf-lua
|
||||
mini
|
||||
utility
|
||||
binds
|
||||
terminal
|
||||
theme
|
||||
lsp
|
||||
treesitter
|
||||
autocomplete
|
||||
languages
|
||||
;
|
||||
searchCase = "smart";
|
||||
hideSearchHighlight = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
22
home/nvf/lsp/autocomplete.nix
Executable file
22
home/nvf/lsp/autocomplete.nix
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
# autocomplete
|
||||
blink-cmp = {
|
||||
enable = true;
|
||||
friendly-snippets.enable = true;
|
||||
setupOpts = {
|
||||
keymap.preset = "default";
|
||||
cmdline = {
|
||||
keymap.preset = "default";
|
||||
};
|
||||
completion = {
|
||||
documentation = {
|
||||
auto_show = true;
|
||||
auto_show_delay_ms = 1000;
|
||||
};
|
||||
};
|
||||
};
|
||||
sourcePlugins = {
|
||||
emoji.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
17
home/nvf/lsp/languages/bash.nix
Executable file
17
home/nvf/lsp/languages/bash.nix
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
# bash
|
||||
enable = true;
|
||||
extraDiagnostics = {
|
||||
enable = true;
|
||||
types = ["shellcheck"];
|
||||
};
|
||||
format = {
|
||||
enable = true;
|
||||
type = ["shfmt"];
|
||||
};
|
||||
lsp = {
|
||||
enable = true;
|
||||
servers = ["bash-ls"];
|
||||
};
|
||||
treesitter.enable = true;
|
||||
}
|
||||
19
home/nvf/lsp/languages/default.nix
Executable file
19
home/nvf/lsp/languages/default.nix
Executable file
|
|
@ -0,0 +1,19 @@
|
|||
let
|
||||
nix = import ./nix.nix;
|
||||
python = import ./python.nix;
|
||||
lua = import ./lua.nix;
|
||||
bash = import ./bash.nix;
|
||||
markdown = import ./markdown.nix;
|
||||
html = import ./html.nix;
|
||||
yaml = import ./yaml.nix;
|
||||
in {
|
||||
inherit
|
||||
nix
|
||||
python
|
||||
lua
|
||||
bash
|
||||
markdown
|
||||
html
|
||||
yaml
|
||||
;
|
||||
}
|
||||
23
home/nvf/lsp/languages/html.nix
Executable file
23
home/nvf/lsp/languages/html.nix
Executable file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
# html
|
||||
enable = true;
|
||||
extraDiagnostics = {
|
||||
enable = true;
|
||||
types = ["htmlhint"];
|
||||
};
|
||||
format = {
|
||||
enable = true;
|
||||
type = [
|
||||
"superhtml"
|
||||
"prettierd"
|
||||
];
|
||||
};
|
||||
lsp = {
|
||||
enable = true;
|
||||
servers = ["superhtml"];
|
||||
};
|
||||
treesitter = {
|
||||
enable = true;
|
||||
autotagHtml = true;
|
||||
};
|
||||
}
|
||||
17
home/nvf/lsp/languages/lua.nix
Executable file
17
home/nvf/lsp/languages/lua.nix
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
# lua
|
||||
enable = true;
|
||||
extraDiagnostics = {
|
||||
enable = true;
|
||||
types = ["luacheck"];
|
||||
};
|
||||
format = {
|
||||
enable = true;
|
||||
type = ["stylua"];
|
||||
};
|
||||
lsp = {
|
||||
enable = true;
|
||||
servers = ["lua-language-server"];
|
||||
};
|
||||
treesitter.enable = true;
|
||||
}
|
||||
30
home/nvf/lsp/languages/markdown.nix
Executable file
30
home/nvf/lsp/languages/markdown.nix
Executable file
|
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
# markdown
|
||||
enable = true;
|
||||
extensions = {
|
||||
render-markdown-nvim = {
|
||||
enable = true;
|
||||
setupOpts = {
|
||||
checkbox = {
|
||||
checked.scope_highlight = "@markup.strikethrough";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
extraDiagnostics = {
|
||||
enable = true;
|
||||
types = ["markdownlint-cli2"];
|
||||
};
|
||||
format = {
|
||||
enable = true;
|
||||
type = [
|
||||
"prettierd"
|
||||
"deno_fmt"
|
||||
];
|
||||
};
|
||||
lsp = {
|
||||
enable = true;
|
||||
servers = ["marksman"];
|
||||
};
|
||||
treesitter.enable = true;
|
||||
}
|
||||
23
home/nvf/lsp/languages/nix.nix
Executable file
23
home/nvf/lsp/languages/nix.nix
Executable file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
# nix
|
||||
enable = true;
|
||||
extraDiagnostics = {
|
||||
enable = true;
|
||||
types = [
|
||||
"deadnix"
|
||||
"statix"
|
||||
];
|
||||
};
|
||||
format = {
|
||||
enable = true;
|
||||
type = [
|
||||
"alejandra"
|
||||
"nixfmt"
|
||||
];
|
||||
};
|
||||
lsp = {
|
||||
enable = true;
|
||||
servers = ["nil"];
|
||||
};
|
||||
treesitter.enable = true;
|
||||
}
|
||||
13
home/nvf/lsp/languages/python.nix
Executable file
13
home/nvf/lsp/languages/python.nix
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
# python
|
||||
enable = true;
|
||||
format = {
|
||||
enable = true;
|
||||
type = ["ruff"];
|
||||
};
|
||||
lsp = {
|
||||
enable = true;
|
||||
servers = ["pyright"];
|
||||
};
|
||||
treesitter.enable = true;
|
||||
}
|
||||
9
home/nvf/lsp/languages/yaml.nix
Executable file
9
home/nvf/lsp/languages/yaml.nix
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
# yaml
|
||||
enable = true;
|
||||
lsp = {
|
||||
enable = true;
|
||||
servers = ["yaml-language-server"];
|
||||
};
|
||||
treesitter.enable = true;
|
||||
}
|
||||
7
home/nvf/lsp/lsp.nix
Executable file
7
home/nvf/lsp/lsp.nix
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
# lsp
|
||||
enable = true;
|
||||
inlayHints.enable = true;
|
||||
lspconfig.enable = true;
|
||||
formatOnSave = true;
|
||||
}
|
||||
9
home/nvf/lsp/treesitter.nix
Executable file
9
home/nvf/lsp/treesitter.nix
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
# treesitter
|
||||
enable = true;
|
||||
fold = true;
|
||||
highlight = {
|
||||
enable = true;
|
||||
};
|
||||
indent.enable = true;
|
||||
}
|
||||
10
home/nvf/plugins/binds.nix
Executable file
10
home/nvf/plugins/binds.nix
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
# binds
|
||||
whichKey = {
|
||||
enable = true;
|
||||
register = {
|
||||
"<leader>f" = "+FZF";
|
||||
"<leader>l" = "+Language";
|
||||
};
|
||||
};
|
||||
}
|
||||
6
home/nvf/plugins/fzf-lua.nix
Executable file
6
home/nvf/plugins/fzf-lua.nix
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
# fzf-lua
|
||||
enable = true;
|
||||
profile = "default";
|
||||
setupOpts = {};
|
||||
}
|
||||
14
home/nvf/plugins/mini.nix
Executable file
14
home/nvf/plugins/mini.nix
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
# mini
|
||||
statusline.enable = true;
|
||||
ai.enable = true;
|
||||
bufremove.enable = true;
|
||||
comment.enable = true;
|
||||
pairs.enable = true;
|
||||
cursorword.enable = true;
|
||||
icons.enable = true;
|
||||
move.enable = true;
|
||||
surround.enable = true;
|
||||
indentscope.enable = true;
|
||||
trailspace.enable = true;
|
||||
}
|
||||
21
home/nvf/plugins/terminal.nix
Executable file
21
home/nvf/plugins/terminal.nix
Executable file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
# terminal
|
||||
toggleterm = {
|
||||
enable = true;
|
||||
setupOpts = {
|
||||
direction = "horizontal";
|
||||
size = 6;
|
||||
};
|
||||
mappings = {
|
||||
open = "<leader>tt";
|
||||
};
|
||||
|
||||
# lazygit
|
||||
lazygit = {
|
||||
enable = true;
|
||||
mappings = {
|
||||
open = "<leader>gg";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
11
home/nvf/plugins/utility.nix
Executable file
11
home/nvf/plugins/utility.nix
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
# utility
|
||||
oil-nvim = {
|
||||
enable = true;
|
||||
gitStatus.enable = true;
|
||||
setupOpts = {
|
||||
view_options.show_hidden = true;
|
||||
};
|
||||
};
|
||||
sleuth.enable = true;
|
||||
}
|
||||
3
home/ripgrep.nix
Executable file
3
home/ripgrep.nix
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
programs.ripgrep.enable = true;
|
||||
}
|
||||
14
home/starship.nix
Executable file
14
home/starship.nix
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
enableBashIntegration = true;
|
||||
|
||||
settings = {
|
||||
character = {
|
||||
success_symbol = "[›](bold green)";
|
||||
error_symbol = "[›](bold red)";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
8
home/zoxide.nix
Executable file
8
home/zoxide.nix
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
programs.zoxide = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
enableBashIntegration = true;
|
||||
options = ["--cmd j"];
|
||||
};
|
||||
}
|
||||
36
home/zsh.nix
Executable file
36
home/zsh.nix
Executable file
|
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
|
||||
enableCompletion = true;
|
||||
autosuggestion.enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
|
||||
history = {
|
||||
size = 10000;
|
||||
save = 10000;
|
||||
};
|
||||
|
||||
shellAliases = {
|
||||
poby = "echo my name is poby";
|
||||
nrs = "sudo nixos-rebuild switch --flake ~/nixos#$(hostname)";
|
||||
nrt = "sudo nixos-rebuild test --flake ~/nixos#$(hostname)";
|
||||
hms = "home-manager switch -b backup --flake ~/nixos#$(whoami)";
|
||||
};
|
||||
|
||||
sessionVariables = {
|
||||
EDITOR = "nvim";
|
||||
};
|
||||
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
theme = "robbyrussell";
|
||||
plugins = [
|
||||
"git"
|
||||
"history"
|
||||
"zoxide"
|
||||
"eza"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue