Compare commits
5 Commits
7a2bbca728
...
ac75980139
Author | SHA1 | Date |
---|---|---|
Zynh Ludwig | ac75980139 | |
Zynh Ludwig | b3624aacf4 | |
Zynh Ludwig | 27a3ec825e | |
Zynh Ludwig | 0247eba923 | |
Zynh Ludwig | 53afc745e7 |
|
@ -22,6 +22,7 @@ in
|
|||
snowhawk.tmux.enable = lib.mkDefault true;
|
||||
snowhawk.tmux.sessionizer.enable = lib.mkDefault true;
|
||||
snowhawk.fish.enable = lib.mkDefault true;
|
||||
snowhawk.direnv.enable = lib.mkDefault true;
|
||||
snowhawk.git.enable = lib.mkDefault true;
|
||||
snowhawk.lazygit.enable = lib.mkDefault true;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -3,6 +3,7 @@
|
|||
let
|
||||
cfg = config.snowhawk.git;
|
||||
macos = config.snowhawk.macos.enable;
|
||||
direnv = config.snowhawk.direnv.enable;
|
||||
|
||||
sshifyPushUrl =
|
||||
let
|
||||
|
@ -35,6 +36,8 @@ in
|
|||
ignores = [
|
||||
"Session.vim"
|
||||
(lib.mkIf macos ".DS_Store")
|
||||
(lib.mkIf direnv ".direnv/")
|
||||
(lib.mkIf direnv ".envrc")
|
||||
];
|
||||
|
||||
aliases = {
|
||||
|
|
|
@ -36,6 +36,7 @@ in
|
|||
extraConfig = ''
|
||||
set-option -g renumber-windows 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 -h -c "#{pane_current_path}"
|
||||
|
|
|
@ -128,7 +128,7 @@
|
|||
serviceConfig = {
|
||||
Type = "simple";
|
||||
RemainAfterExit = "true";
|
||||
ExecStart = "${pkgs.ethtool}/sbin/ethtool -s enp7s0 wol g";
|
||||
ExecStart = "${lib.getExe pkgs.ethtool} -s enp7s0 wol g";
|
||||
};
|
||||
wantedBy = [ "default.target" ];
|
||||
};
|
||||
|
|
|
@ -78,7 +78,7 @@
|
|||
# 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
|
||||
# of just the bare essentials.
|
||||
powerManagement.enable = false;
|
||||
powerManagement.enable = true;
|
||||
|
||||
# Fine-grained power management. Turns off GPU when not in use.
|
||||
# Experimental and only works on modern Nvidia GPUs (Turing or newer).
|
||||
|
|
Loading…
Reference in New Issue