Compare commits

..

17 Commits

6 changed files with 24 additions and 3 deletions

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).

View File

@ -13,10 +13,10 @@ in
package = neovim-package; package = neovim-package;
}; };
snowhawk = { snowhawk = {
direnv.enable = true;
alacritty.enable = true; alacritty.enable = true;
theme.enable = true; theme.enable = true;
projects.enable = true; projects.enable = true;
lazygit.enable = true;
dunst.enable = true; dunst.enable = true;
sops.enable = true; sops.enable = true;
defaultPrograms.enable = true; defaultPrograms.enable = true;