mirror of
https://github.com/srid/nixos-config.git
synced 2026-05-11 17:36:07 +08:00
add more
This commit is contained in:
parent
eea4ff4143
commit
4ad08495a5
4 changed files with 46 additions and 45 deletions
21
home.nix
21
home.nix
|
|
@ -47,26 +47,7 @@ rec {
|
|||
programs = {
|
||||
git = import ./home/git.nix;
|
||||
|
||||
tmux = {
|
||||
enable = true;
|
||||
shortcut = "a";
|
||||
aggressiveResize = true;
|
||||
baseIndex = 1;
|
||||
newSession = true;
|
||||
# Stop tmux+escape craziness.
|
||||
escapeTime = 0;
|
||||
# Force tmux to use /tmp for sockets (WSL2 compat)
|
||||
secureSocket = false;
|
||||
|
||||
extraConfig = ''
|
||||
# Mouse works as expected
|
||||
set-option -g mouse on
|
||||
# easy-to-remember split pane commands
|
||||
bind | split-window -h -c "#{pane_current_path}"
|
||||
bind - split-window -v -c "#{pane_current_path}"
|
||||
bind c new-window -c "#{pane_current_path}"
|
||||
'';
|
||||
};
|
||||
tmux = import ./home/tmux.nix;
|
||||
|
||||
#doom-emacs = {
|
||||
# enable = false;
|
||||
|
|
|
|||
46
home/git.nix
46
home/git.nix
|
|
@ -1,24 +1,24 @@
|
|||
{
|
||||
# package = pkgs.gitAndTools.gitFull;
|
||||
enable = true;
|
||||
userName = "Sridhar Ratnakumar";
|
||||
userEmail = "srid@srid.ca";
|
||||
aliases = {
|
||||
co = "checkout";
|
||||
ci = "commit";
|
||||
cia = "commit --amend";
|
||||
s = "status";
|
||||
st = "status";
|
||||
b = "branch";
|
||||
p = "pull --rebase";
|
||||
pu = "push";
|
||||
};
|
||||
ignores = [ "*~" "*.swp" ];
|
||||
extraConfig = {
|
||||
init.defaultBranch = "master";
|
||||
#core.editor = "nvim";
|
||||
#protocol.keybase.allow = "always";
|
||||
credential.helper = "store --file ~/.git-credentials";
|
||||
pull.rebase = "false";
|
||||
};
|
||||
};
|
||||
# package = pkgs.gitAndTools.gitFull;
|
||||
enable = true;
|
||||
userName = "Sridhar Ratnakumar";
|
||||
userEmail = "srid@srid.ca";
|
||||
aliases = {
|
||||
co = "checkout";
|
||||
ci = "commit";
|
||||
cia = "commit --amend";
|
||||
s = "status";
|
||||
st = "status";
|
||||
b = "branch";
|
||||
p = "pull --rebase";
|
||||
pu = "push";
|
||||
};
|
||||
ignores = [ "*~" "*.swp" ];
|
||||
extraConfig = {
|
||||
init.defaultBranch = "master";
|
||||
#core.editor = "nvim";
|
||||
#protocol.keybase.allow = "always";
|
||||
credential.helper = "store --file ~/.git-credentials";
|
||||
pull.rebase = "false";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
20
home/tmux.nix
Normal file
20
home/tmux.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
enable = true;
|
||||
shortcut = "a";
|
||||
aggressiveResize = true;
|
||||
baseIndex = 1;
|
||||
newSession = true;
|
||||
# Stop tmux+escape craziness.
|
||||
escapeTime = 0;
|
||||
# Force tmux to use /tmp for sockets (WSL2 compat)
|
||||
secureSocket = false;
|
||||
|
||||
extraConfig = ''
|
||||
# Mouse works as expected
|
||||
set-option -g mouse on
|
||||
# easy-to-remember split pane commands
|
||||
bind | split-window -h -c "#{pane_current_path}"
|
||||
bind - split-window -v -c "#{pane_current_path}"
|
||||
bind c new-window -c "#{pane_current_path}"
|
||||
'';
|
||||
}
|
||||
|
|
@ -9,7 +9,7 @@
|
|||
boot.initrd.availableKernelModules = [ "nvme" "ahci" ];
|
||||
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
fsType = "ext4";
|
||||
};
|
||||
|
||||
swapDevices = [];
|
||||
swapDevices = [ ];
|
||||
|
||||
nix.maxJobs = lib.mkDefault 32;
|
||||
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue