2022-08-13 20:59:05 +00:00
|
|
|
{
|
2023-01-28 20:49:10 +00:00
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
2024-06-13 00:14:25 +00:00
|
|
|
let
|
2023-01-28 20:49:10 +00:00
|
|
|
cfg = config.pub-solar.core;
|
2023-11-10 18:48:06 +00:00
|
|
|
psCfg = config.pub-solar;
|
2023-01-28 20:49:10 +00:00
|
|
|
in {
|
2022-08-13 20:59:05 +00:00
|
|
|
imports = [
|
|
|
|
./boot.nix
|
2022-08-14 18:09:38 +00:00
|
|
|
./hibernation.nix
|
2022-08-13 20:59:05 +00:00
|
|
|
./i18n.nix
|
|
|
|
./networking.nix
|
|
|
|
./packages.nix
|
|
|
|
];
|
|
|
|
|
2023-11-10 18:48:06 +00:00
|
|
|
# Service that makes Out of Memory Killer more effective
|
|
|
|
services.earlyoom.enable = true;
|
2022-08-14 13:54:19 +00:00
|
|
|
|
2023-11-10 18:48:06 +00:00
|
|
|
services.logind.lidSwitch = "hibernate";
|
2022-08-14 15:17:35 +00:00
|
|
|
|
2023-11-10 18:48:06 +00:00
|
|
|
services.tor.settings = {
|
|
|
|
UseBridges = true;
|
2022-08-14 13:54:19 +00:00
|
|
|
};
|
2023-11-10 18:48:06 +00:00
|
|
|
|
|
|
|
# The options below are directly taken from or inspired by
|
|
|
|
# https://xeiaso.net/blog/paranoid-nixos-2021-07-18
|
|
|
|
|
|
|
|
# Limit the use of sudo to the group wheel
|
|
|
|
security.sudo.execWheelOnly = true;
|
|
|
|
|
|
|
|
# Remove the complete default environment of packages like
|
|
|
|
# nano, perl and rsync
|
|
|
|
environment.defaultPackages = lib.mkForce [];
|
|
|
|
|
|
|
|
# fileSystems."/".options = [ "noexec" ];
|
2022-08-13 20:59:05 +00:00
|
|
|
}
|