Compare commits
17 Commits
d8c069b83b
...
7844d4f376
Author | SHA1 | Date |
---|---|---|
Zynh Ludwig | 7844d4f376 | |
Zynh Ludwig | b4f2f69598 | |
Zynh Ludwig | ef4d27f82c | |
Zynh Ludwig | 6fdc07c9eb | |
Zynh Ludwig | f1d33ca40f | |
Zynh Ludwig | 4c8cd6c858 | |
Zynh Ludwig | 544c431454 | |
Zynh Ludwig | 50f0e4e3b5 | |
Zynh Ludwig | 1724c37cb5 | |
Zynh Ludwig | bef194d211 | |
Zynh Ludwig | 2df02b5ebb | |
Zynh Ludwig | ac75980139 | |
Zynh Ludwig | b3624aacf4 | |
Zynh Ludwig | 27a3ec825e | |
Zynh Ludwig | 0247eba923 | |
Zynh Ludwig | 53afc745e7 | |
Zynh Ludwig | 7a2bbca728 |
|
@ -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
|
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 = {
|
||||||
|
|
|
@ -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}"
|
||||||
|
|
|
@ -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" ];
|
||||||
};
|
};
|
||||||
|
|
|
@ -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).
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue