Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexvZyl committed Jun 11, 2024
1 parent 06be275 commit ff6c944
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .config/nvim
6 changes: 3 additions & 3 deletions .config/picom/picom.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
shadow = true;

# The blur radius for shadows, in pixels. (defaults to 12)
shadow-radius = 10;
shadow-radius = 7;

# The opacity of shadows. (0.0 - 1.0, defaults to 0.75)
shadow-opacity = 1;

# The left offset for shadows, in pixels. (defaults to -15)
shadow-offset-x = -10;
shadow-offset-x = -7;

# The top offset for shadows, in pixels. (defaults to -15)
shadow-offset-y =-10;
shadow-offset-y =-7;

# Red color value of shadow (0.0 - 1.0, defaults to 0).
# shadow-red = 0
Expand Down
4 changes: 2 additions & 2 deletions .config/tmux/tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ bind -n M-Down resize-pane -D 5
bind -n M-= next-layout

# Windows.
bind -n M-Tab next-window
bind -n M-S-Tab previous-window
bind -n M-n next-window
bind -n M-p previous-window
#bind -n M-l next-window
#bind -n M-h previous-window
bind -n M-1 select-window -t 1
Expand Down
3 changes: 2 additions & 1 deletion .nixos/dev.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
nodePackages.bash-language-server
nodePackages.vscode-html-languageserver-bin
nodePackages.typescript-language-server
nodePackages_latest.vscode-json-languageserver-bin
nodePackages.vscode-json-languageserver-bin
nodePackages.vscode-css-languageserver-bin
docker-ls
dockerfile-language-server-nodejs
clang-tools
Expand Down
2 changes: 2 additions & 0 deletions .nixos/gpu.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
hardware.nvidia = {
modesetting.enable = true;
open = false;

nvidiaSettings = true;
forceFullCompositionPipeline = true;
package = config.boot.kernelPackages.nvidiaPackages.stable;

powerManagement.enable = true;
nvidiaPersistenced = true;
};
Expand Down
8 changes: 8 additions & 0 deletions .nixos/system.nix
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,12 @@
fonts.packages = with pkgs; [
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
];

powerManagement = {
enable = true;
powertop.enable = true;
cpuFreqGovernor = "powersave";
# cpufreq.max = 2000000;
cpufreq.max = 10000000;
};
}
2 changes: 1 addition & 1 deletion .password-store
2 changes: 1 addition & 1 deletion .profile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ alias tw="tmux-workspace"
alias tks="tmux kill-session"

# Nix aliases.
alias nix-build="sudo nixos-rebuild switch --flake \$HOME/.nixos#default --impure; notify-send 'NixOS' 'Build complete.' || notify-send --urgency=critical 'NixOS' 'Build failed.'"
alias nix-build="sudo nixos-rebuild switch --flake \$HOME/.nixos#default --impure && notify-send 'NixOS' 'Build complete.' || notify-send --urgency=critical 'NixOS' 'Build failed.'"
alias nix-update="sudo nix-channel --update && notify-send 'NixOS' 'Channels updated.' || notify-send --urgency=critical 'NixOS' 'Upgrade failed.'"
alias nix-clear="sudo nix-collect-garbage --delete-older-than"
alias nix-python-activate="LD_LIBRARY_PATH=\$(nix eval --raw nixpkgs#stdenv.cc.cc.lib)/lib \
Expand Down

0 comments on commit ff6c944

Please sign in to comment.