profiles: update misc parts of config

This commit is contained in:
Gabriel Arazas 2022-11-26 14:13:59 +08:00
parent 3889429ac2
commit 5f32e4fd98
4 changed files with 12 additions and 4 deletions

View File

@ -89,6 +89,7 @@ in {
profiles = { profiles = {
cjk = rec { cjk = rec {
profile-desc = "CJK prioritization";
vlang = "zho,zh,kor,ko,jpn,ja,eng,en"; vlang = "zho,zh,kor,ko,jpn,ja,eng,en";
alang = vlang; alang = vlang;
slang = with lib; concatStringsSep "," (reverseList (splitString "," vlang)); slang = with lib; concatStringsSep "," (reverseList (splitString "," vlang));

View File

@ -34,7 +34,7 @@ in {
(lib.mkIf cfg.shell.enable { (lib.mkIf cfg.shell.enable {
programs.bash = { programs.bash = {
enable = true; enable = true;
historyControl = [ "ignoredups" "ignorespace" ]; historyControl = [ "erasedups" "ignoredups" "ignorespace" ];
historyIgnore = [ historyIgnore = [
"cd" "cd"
"exit" "exit"

View File

@ -22,9 +22,17 @@ in {
withPython3 = true; withPython3 = true;
withRuby = true; withRuby = true;
withNodeJs = true; withNodeJs = true;
plugins = with pkgs.vimPlugins; [
parinfer-rust
];
}; };
}) })
# I only use Emacs for org-roam (seriously... I only learned Emacs for
# that). Take note this profile doesn't setup Emacs-as-a-development-tool
# thing, rather Emacs-as-a-note-taking tool thing with the complete
# package.
(lib.mkIf cfg.emacs.enable { (lib.mkIf cfg.emacs.enable {
programs.emacs = { programs.emacs = {
enable = true; enable = true;

View File

@ -237,8 +237,8 @@ in {
]; ];
}) })
# The profile intended to be used for servers. # The profile intended to be used for servers. Most of the things here are
# Most of the things here are based from the Securing Debian document. # based from the Securing Debian document.
(lib.mkIf cfg.hardened-config.enable { (lib.mkIf cfg.hardened-config.enable {
# Don't replace it mid-way! DON'T TURN LEFT!!!! # Don't replace it mid-way! DON'T TURN LEFT!!!!
security.protectKernelImage = true; security.protectKernelImage = true;
@ -254,7 +254,6 @@ in {
factor = "4"; factor = "4";
maxtime = "24h"; maxtime = "24h";
}; };
ignoreIP = [ "127.0.0.1/16" ];
}; };
boot.kernel.sysctl = { boot.kernel.sysctl = {