mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-04-24 18:19:11 +00:00
profiles: update misc parts of config
This commit is contained in:
parent
3889429ac2
commit
5f32e4fd98
@ -89,6 +89,7 @@ in {
|
||||
|
||||
profiles = {
|
||||
cjk = rec {
|
||||
profile-desc = "CJK prioritization";
|
||||
vlang = "zho,zh,kor,ko,jpn,ja,eng,en";
|
||||
alang = vlang;
|
||||
slang = with lib; concatStringsSep "," (reverseList (splitString "," vlang));
|
||||
|
@ -34,7 +34,7 @@ in {
|
||||
(lib.mkIf cfg.shell.enable {
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
historyControl = [ "ignoredups" "ignorespace" ];
|
||||
historyControl = [ "erasedups" "ignoredups" "ignorespace" ];
|
||||
historyIgnore = [
|
||||
"cd"
|
||||
"exit"
|
||||
|
@ -22,9 +22,17 @@ in {
|
||||
withPython3 = true;
|
||||
withRuby = 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 {
|
||||
programs.emacs = {
|
||||
enable = true;
|
||||
|
@ -237,8 +237,8 @@ in {
|
||||
];
|
||||
})
|
||||
|
||||
# The profile intended to be used for servers.
|
||||
# Most of the things here are based from the Securing Debian document.
|
||||
# The profile intended to be used for servers. Most of the things here are
|
||||
# based from the Securing Debian document.
|
||||
(lib.mkIf cfg.hardened-config.enable {
|
||||
# Don't replace it mid-way! DON'T TURN LEFT!!!!
|
||||
security.protectKernelImage = true;
|
||||
@ -254,7 +254,6 @@ in {
|
||||
factor = "4";
|
||||
maxtime = "24h";
|
||||
};
|
||||
ignoreIP = [ "127.0.0.1/16" ];
|
||||
};
|
||||
|
||||
boot.kernel.sysctl = {
|
||||
|
Loading…
Reference in New Issue
Block a user