README.md: add GLF OS credits

and adapt various config elements from it

Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
2025-06-12 22:39:29 +03:00
parent e170e9d2b7
commit 1dc168ce63
7 changed files with 22 additions and 4 deletions

View File

@ -12,5 +12,6 @@ Configurations I took code/ideas from:
- [github:TheMaxMur/NixOS-Configuration](https://github.com/TheMaxMur/NixOS-Configuration)
- [github:nix-community/srvos](https://github.com/nix-community/srvos)
- [github:cloud-gouv/securix](https://github.com/cloud-gouv/securix)
- [GLF OS](https://www.gaminglinux.fr/glf-os/en)
Thx a lot <3

View File

@ -1,5 +1,6 @@
{
inputs,
lib,
pkgs,
...
}: {
@ -18,7 +19,6 @@
hostName = "sarien";
};
boot.loader.systemd-boot.enable = true;
environment.memoryAllocator.provider = "mimalloc";
system.stateVersion = "25.11";
time.timeZone = "Europe/Kyiv";
@ -29,7 +29,6 @@
user = "user";
};
zramSwap.enable = true;
swapDevices = [
{
device = "/swap/swapfile";
@ -39,7 +38,7 @@
{
device = "/swap/hibernate";
size = 16 * 1024;
priority = 0;
priority = 1;
}
];

View File

@ -1,3 +1,3 @@
{
imports = [./slim.nix];
imports = [./slim.nix ./zram.nix];
}

View File

@ -0,0 +1,8 @@
{
zramSwap = {
enable = true;
algorithm = "zstd";
memoryPercent = 25;
priority = 5;
};
}

View File

@ -7,7 +7,12 @@
package = pkgs.lixPackageSets.latest.lix;
channel.enable = false;
daemonCPUSchedPolicy = "idle";
optimise = {
automatic = true;
dates = ["weekly"];
};
settings = {
auto-optimise-store = true;
experimental-features = [
"nix-command"
"flakes"

View File

@ -56,6 +56,7 @@ in {
"fs.protected_regular" = 2;
"fs.suid_dumpable" = 0;
"kernel.kptr_restrict" = 2;
"kernel_kexec_load_disabled" = 1;
# "kernel.modules_disabled" = 1;
"kernel.sysrq" = 0;
"kernel.unprivileged_bpf_disabled" = 1;

View File

@ -16,6 +16,10 @@
bootstrap_resolvers = ["9.9.9.11:53" "9.9.9.9:53"];
};
};
fstrim = {
enable = true;
interval = "daily";
};
opensnitch = {
enable = false;
settings = {