initial commit
This commit is contained in:
commit
733dce18a0
11 changed files with 295 additions and 0 deletions
6
home/bogale.nix
Normal file
6
home/bogale.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./common.nix ];
|
||||
home.username = "bogale";
|
||||
home.homeDirectory = "/home/bogale";
|
||||
}
|
||||
58
home/common.nix
Normal file
58
home/common.nix
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
home.stateVersion = "26.05";
|
||||
programs = {
|
||||
home-manager.enable = true;
|
||||
bash = {
|
||||
enable = true;
|
||||
historyControl = [ "ignoreboth" ];
|
||||
shellAliases = { la = "ls -lAtr"; };
|
||||
};
|
||||
git = {
|
||||
enable = true;
|
||||
settings = {
|
||||
init.defaultbranch = "main";
|
||||
user = {
|
||||
name = "bogale";
|
||||
email = "git@bogaledev.ru";
|
||||
};
|
||||
};
|
||||
};
|
||||
neovim = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
extraConfig = ''
|
||||
set tabstop=4
|
||||
set shiftwidth=4
|
||||
set expandtab
|
||||
set number
|
||||
set relativenumber
|
||||
autocmd FileType nix set tabstop=2 shiftwidth=2
|
||||
'';
|
||||
};
|
||||
tmux = {
|
||||
enable = true;
|
||||
clock24 = true;
|
||||
keyMode = "vi";
|
||||
escapeTime = 0;
|
||||
terminal = "screen-256color";
|
||||
extraConfig = ''
|
||||
unbind C-b
|
||||
set -g mouse on
|
||||
set -g prefix M-d
|
||||
set -g prefix M-f
|
||||
set-option -g focus-events on
|
||||
set -s set-clipboard external
|
||||
set-option -a terminal-features "xterm-256color:RGB"
|
||||
bind f send-prefix
|
||||
bind d send-prefix
|
||||
bind h select-pane -L
|
||||
bind j select-pane -D
|
||||
bind k select-pane -U
|
||||
bind l select-pane -R
|
||||
bind u split-window -h
|
||||
bind i split-window -v
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
6
home/root.nix
Normal file
6
home/root.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ./common.nix ];
|
||||
home.username = "root";
|
||||
home.homeDirectory = "/root";
|
||||
}
|
||||
4
home/server/bogale.nix
Normal file
4
home/server/bogale.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ../bogale.nix ];
|
||||
}
|
||||
7
home/server/root.nix
Normal file
7
home/server/root.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
imports = [ ../root.nix ];
|
||||
programs.bash = {
|
||||
shellAliases = { "nixos-rebuild" = "nixos-rebuild --impure --flake /etc/nixos/server#nixos-server"; };
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue