2022-08-13 20:59:05 +00:00
|
|
|
{
|
2022-11-20 22:28:23 +00:00
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
2022-08-14 13:11:01 +00:00
|
|
|
with lib; let
|
2022-08-13 20:59:05 +00:00
|
|
|
cfg = config.pub-solar.core;
|
2023-10-24 15:56:14 +00:00
|
|
|
psCfg = config.pub-solar;
|
2022-11-20 22:28:23 +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-10-07 14:45:42 +00:00
|
|
|
# Service that makes Out of Memory Killer more effective
|
|
|
|
services.earlyoom.enable = true;
|
2022-08-14 13:54:19 +00:00
|
|
|
|
2023-10-07 14:45:42 +00:00
|
|
|
services.logind.lidSwitch = "hibernate";
|
2022-08-14 15:17:35 +00:00
|
|
|
|
2023-10-07 14:45:42 +00:00
|
|
|
services.tor.settings = {
|
|
|
|
UseBridges = true;
|
2022-08-14 13:54:19 +00:00
|
|
|
};
|
2023-10-07 14:45:42 +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
|
|
|
}
|