Compare commits

...

2 Commits

Author SHA1 Message Date
c7d697a6d2 swapiness and gnome fonts non-cjk 2026-03-26 20:45:56 +03:00
c6b918bcf1 [djamba] added swap and zramSwap 2026-03-18 15:16:44 +03:00
3 changed files with 19 additions and 5 deletions

View File

@@ -43,7 +43,7 @@
}; };
networking.hosts = { networking.hosts = {
"127.0.0.1" = [ "dev.tolma.ch" ]; "127.0.0.2" = [ "dev.tolma.ch" ];
}; };
# Enable the X11 windowing system. # Enable the X11 windowing system.
@@ -109,10 +109,10 @@
"Ubuntu Mono" "Ubuntu Mono"
]; ];
serif = [ serif = [
"Noto Serif CJK SC" "Noto Serif"
]; ];
sansSerif = [ sansSerif = [
"Noto Sans CJK SC" "Noto Sans"
]; ];
}; };
localConf = '' localConf = ''
@@ -134,6 +134,7 @@
nerd-fonts.recursive-mono nerd-fonts.recursive-mono
nerd-fonts.iosevka nerd-fonts.iosevka
nerd-fonts.symbols-only nerd-fonts.symbols-only
noto-fonts
noto-fonts-cjk-sans noto-fonts-cjk-sans
noto-fonts-cjk-serif noto-fonts-cjk-serif
]; ];

View File

@@ -37,8 +37,8 @@
switch-to-workspace-5 = ["<Control>5"]; switch-to-workspace-5 = ["<Control>5"];
}; };
"org/gnome/desktop/interface" = { "org/gnome/desktop/interface" = {
document-font-name = "Noto Sans CJK SC 12 @wght=400"; document-font-name = "Noto Sans 12 @wght=400";
font-name = "Noto Sans CJK SC 11 @wght=400"; font-name = "Noto Sans 11 @wght=400";
monospace-font-name = "RecMonoLinear Nerd Font Mono 11"; monospace-font-name = "RecMonoLinear Nerd Font Mono 11";
}; };
"org/gnome/shell" = { "org/gnome/shell" = {

View File

@@ -20,6 +20,19 @@
# Use latest kernel. # Use latest kernel.
boot.kernelPackages = pkgs.linuxPackages_latest; boot.kernelPackages = pkgs.linuxPackages_latest;
swapDevices = [{
device = "/var/lib/swapfile";
size = 32*1024; # 32 GiB
options = [ "discard" ];
}];
boot.kernel.sysctl = {
"vm.swappiness" = 1;
};
zramSwap = {
enable = true;
memoryMax = 6 * 1024 * 1024 * 1024;
};
networking.hostName = "djamba"; # Define your hostname. networking.hostName = "djamba"; # Define your hostname.
# Enable networking # Enable networking