mirror of
https://github.com/nmasur/dotfiles
synced 2025-04-25 19:02:23 +00:00
Compare commits
3 Commits
38892b1135
...
200f790ea1
Author | SHA1 | Date | |
---|---|---|---|
|
200f790ea1 | ||
|
9f561c822c | ||
|
1f0b04b89b |
@ -7,11 +7,13 @@
|
|||||||
pkgs.vimPlugins.comment-nvim # Smart comment commands
|
pkgs.vimPlugins.comment-nvim # Smart comment commands
|
||||||
pkgs.vimPlugins.glow-nvim # Markdown preview popup
|
pkgs.vimPlugins.glow-nvim # Markdown preview popup
|
||||||
pkgs.vimPlugins.nvim-colorizer-lua # Hex color previews
|
pkgs.vimPlugins.nvim-colorizer-lua # Hex color previews
|
||||||
|
pkgs.vimPlugins.which-key-nvim # Keybind helper
|
||||||
];
|
];
|
||||||
|
|
||||||
setup.Comment = { };
|
setup.Comment = { };
|
||||||
setup.colorizer = { };
|
setup.colorizer = { };
|
||||||
setup.glow = { };
|
setup.glow = { };
|
||||||
|
setup.which-key = { };
|
||||||
|
|
||||||
vim.o = {
|
vim.o = {
|
||||||
termguicolors = true; # Set to truecolor
|
termguicolors = true; # Set to truecolor
|
||||||
@ -41,6 +43,10 @@
|
|||||||
relativenumber = true; # Relative numbers instead of absolute
|
relativenumber = true; # Relative numbers instead of absolute
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# For which-key-nvim
|
||||||
|
vim.o.timeout = true;
|
||||||
|
vim.o.timeoutlen = 300;
|
||||||
|
|
||||||
# Better backup, swap and undo storage
|
# Better backup, swap and undo storage
|
||||||
vim.o.backup = true; # Easier to recover and more secure
|
vim.o.backup = true; # Easier to recover and more secure
|
||||||
vim.bo.swapfile = false; # Instead of swaps, create backups
|
vim.bo.swapfile = false; # Instead of swaps, create backups
|
||||||
|
@ -73,6 +73,9 @@
|
|||||||
path = builtins.toString pkgs.path;
|
path = builtins.toString pkgs.path;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# For security, only allow specific users
|
||||||
|
settings.allowed-users = [ "@wheel" config.user ];
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -28,6 +28,8 @@
|
|||||||
upper = "06:00";
|
upper = "06:00";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Create an email notification service for failed jobs
|
||||||
systemd.services."notify-email@" =
|
systemd.services."notify-email@" =
|
||||||
let address = "system@${config.mail.server}";
|
let address = "system@${config.mail.server}";
|
||||||
in {
|
in {
|
||||||
@ -48,6 +50,8 @@
|
|||||||
${address} < $TEMPFILE
|
${address} < $TEMPFILE
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Send an email whenever auto upgrade fails
|
||||||
systemd.services.nixos-upgrade.onFailure =
|
systemd.services.nixos-upgrade.onFailure =
|
||||||
lib.mkIf config.systemd.services."notify-email@".enable
|
lib.mkIf config.systemd.services."notify-email@".enable
|
||||||
[ "notify-email@%i.service" ];
|
[ "notify-email@%i.service" ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user