Compare commits

..

5 Commits

Author SHA1 Message Date
Zynh Ludwig ac75980139 git: direnv gitignore 2024-08-20 01:46:57 -07:00
Zynh Ludwig b3624aacf4 direnv: module init 2024-08-20 01:46:57 -07:00
Zynh Ludwig 27a3ec825e tmux: terminal-features
from nvim checkhealth
2024-08-20 01:46:57 -07:00
Zynh Ludwig 0247eba923 snowhawk: lib.getExe for wakeonlan 2024-08-19 22:41:48 -07:00
Zynh Ludwig 53afc745e7 snowhawk: nvidia powerManagement 2024-08-19 22:29:35 -07:00
6 changed files with 24 additions and 2 deletions

View File

@ -22,6 +22,7 @@ in
snowhawk.tmux.enable = lib.mkDefault true; snowhawk.tmux.enable = lib.mkDefault true;
snowhawk.tmux.sessionizer.enable = lib.mkDefault true; snowhawk.tmux.sessionizer.enable = lib.mkDefault true;
snowhawk.fish.enable = lib.mkDefault true; snowhawk.fish.enable = lib.mkDefault true;
snowhawk.direnv.enable = lib.mkDefault true;
snowhawk.git.enable = lib.mkDefault true; snowhawk.git.enable = lib.mkDefault true;
snowhawk.lazygit.enable = lib.mkDefault true; snowhawk.lazygit.enable = lib.mkDefault true;
} }

17
home/modules/direnv.nix Normal file
View File

@ -0,0 +1,17 @@
{ lib, config, ... }:
let
cfg = config.snowhawk.direnv;
in
{
options.snowhawk.direnv = {
enable = lib.mkEnableOption "direnv home-manager module";
};
config = lib.mkIf cfg.enable {
programs.direnv = {
enable = true;
nix-direnv.enable = true;
};
};
}

View File

@ -3,6 +3,7 @@
let let
cfg = config.snowhawk.git; cfg = config.snowhawk.git;
macos = config.snowhawk.macos.enable; macos = config.snowhawk.macos.enable;
direnv = config.snowhawk.direnv.enable;
sshifyPushUrl = sshifyPushUrl =
let let
@ -35,6 +36,8 @@ in
ignores = [ ignores = [
"Session.vim" "Session.vim"
(lib.mkIf macos ".DS_Store") (lib.mkIf macos ".DS_Store")
(lib.mkIf direnv ".direnv/")
(lib.mkIf direnv ".envrc")
]; ];
aliases = { aliases = {

View File

@ -36,6 +36,7 @@ in
extraConfig = '' extraConfig = ''
set-option -g renumber-windows on set-option -g renumber-windows on
set-option -g focus-events on set-option -g focus-events on
set-option -g terminal-features 'alacritty:RGB'
bind '"' split-window -v -c "#{pane_current_path}" bind '"' split-window -v -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}" bind % split-window -h -c "#{pane_current_path}"

View File

@ -128,7 +128,7 @@
serviceConfig = { serviceConfig = {
Type = "simple"; Type = "simple";
RemainAfterExit = "true"; RemainAfterExit = "true";
ExecStart = "${pkgs.ethtool}/sbin/ethtool -s enp7s0 wol g"; ExecStart = "${lib.getExe pkgs.ethtool} -s enp7s0 wol g";
}; };
wantedBy = [ "default.target" ]; wantedBy = [ "default.target" ];
}; };

View File

@ -78,7 +78,7 @@
# Enable this if you have graphical corruption issues or application crashes after waking # Enable this if you have graphical corruption issues or application crashes after waking
# up from sleep. This fixes it by saving the entire VRAM memory to /tmp/ instead # up from sleep. This fixes it by saving the entire VRAM memory to /tmp/ instead
# of just the bare essentials. # of just the bare essentials.
powerManagement.enable = false; powerManagement.enable = true;
# Fine-grained power management. Turns off GPU when not in use. # Fine-grained power management. Turns off GPU when not in use.
# Experimental and only works on modern Nvidia GPUs (Turing or newer). # Experimental and only works on modern Nvidia GPUs (Turing or newer).