From 4ad08495a5aa7f57afbe5ed9fdf22817e85028f7 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Sun, 12 Sep 2021 18:38:48 -0400 Subject: [PATCH] add more --- home.nix | 21 +-------------------- home/git.nix | 46 +++++++++++++++++++++++----------------------- home/tmux.nix | 20 ++++++++++++++++++++ hosts/ryzen9.nix | 4 ++-- 4 files changed, 46 insertions(+), 45 deletions(-) create mode 100644 home/tmux.nix diff --git a/home.nix b/home.nix index fd9b47d..7237090 100644 --- a/home.nix +++ b/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; diff --git a/home/git.nix b/home/git.nix index bdc2985..e38b825 100644 --- a/home/git.nix +++ b/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"; - }; - }; \ No newline at end of file + # 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"; + }; +} diff --git a/home/tmux.nix b/home/tmux.nix new file mode 100644 index 0000000..2090371 --- /dev/null +++ b/home/tmux.nix @@ -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}" + ''; +} diff --git a/hosts/ryzen9.nix b/hosts/ryzen9.nix index 24a16d9..6f1f8de 100644 --- a/hosts/ryzen9.nix +++ b/hosts/ryzen9.nix @@ -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";