-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
39 changed files
with
952 additions
and
629 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ lib, config, pkgs, ... }: | ||
|
||
# Security management of FLEXY | ||
|
||
# SECURITY(Krey): For some reason it's not pulling the latest microcode during testing, investigate this more once it has NiXium deployed on it | ||
# * CPU microcode is the latest known available version: NO (latest version is 0x860010c dated 2023/10/07 according to builtin firmwares DB v296+i20240514+988c) | ||
|
||
let | ||
inherit (lib) mkMerge mkForce mkDefault mkIf; | ||
in { | ||
config = mkMerge [ | ||
{ | ||
security.allowSimultaneousMultithreading = mkForce false; # Disable Simultaneous Multi-Threading as on this system it exposes unwanted attack vectors | ||
|
||
# NOTE(Krey): Breaks USB | ||
security.lockKernelModules = false; | ||
|
||
# NOTE(Krey): Breaks hibernation | ||
security.protectKernelImage = false; | ||
|
||
# SECURITY(Krey): Some packages run in electron (vscodium) which requires this, in process of managing it | ||
security.unprivilegedUsernsClone = true; | ||
|
||
# Kernel | ||
boot.kernelPackages = mkForce pkgs.linuxPackages_hardened; # Always use the Hardened Kernel | ||
|
||
boot.kernelParams = mkForce [ | ||
"tsx=auto" # Let Linux Developers determine if the mitigation is needed | ||
"tsx_async_abort=full,nosmt" # Enforce Full Mitigation if the management is needed | ||
"mds=off" # Paranoid enforcement, shouldn't be needed.. | ||
]; | ||
|
||
# Necessary Evil to keep the CPU microcode up-to-date, such is all i686 and amd64 architecture systems | ||
hardware.enableRedistributableFirmware = true; | ||
hardware.cpu.amd.updateMicrocode = mkDefault config.hardware.enableRedistributableFirmware; | ||
} | ||
|
||
# # Enforce to use the Tor Proxy | ||
# (mkIf config.services.tor.enable { | ||
# networking.proxy.default = mkDefault "socks5://127.0.0.1:9050"; | ||
# networking.proxy.noProxy = mkDefault "127.0.0.1,localhost"; | ||
# }) | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 18 additions & 19 deletions
37
src/nixos/machines/mracek/secrets/mracek-builder-ssh-ed25519-private.age
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
-----BEGIN AGE ENCRYPTED FILE----- | ||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IHNzaC1lZDI1NTE5IHdlK3M2dyBFV0lP | ||
Tlo0M0dkcExHemxDbHYyZ3ZxczhndEx1L0VUWVlwbFdpQ2RwQmprCkR6K0tjSjY1 | ||
R1owdVNPZGhCVHJ5bC96bVNVY1g0b1pqb2xOblhnaUJnSW8KLT4gc3NoLWVkMjU1 | ||
MTkgU0t3L3p3IGJheTN2SXcybUgzZzRtWndXcWJOTjc5ck5KWGdCcThPYnFPMXVu | ||
a280QlUKSHozZjFvTk5IV2NnaDJ3cUh3QkpnK2tmMzhWWHl1SEpEckdmYjQxZzZN | ||
WQotPiBYIzMiLWdyZWFzZSBdIC41eCsmXkooCkhYdDhIRlpqZnZjb0FZai9HWEJN | ||
aDZpeUcxUjZ1WEJxZENqWjdmb1N6S3Z6ZHU3SnlybzczcWxIMnU5RlFrZ2MKNzFp | ||
MkpyblhqUFhCcExMbDhKUjBxdjBwRHp5dXlTNUo1dWJ2QmFjSlgwODlCRUVERHI3 | ||
amcyeVBOL2J5VHcKLS0tIHgvMDJhSE9iYmxyM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kQ0b1BFZ243R3E3YW13cXl2NUVndVha | ||
Rm5kaGI3ZE9SVUR3SmdCTlVGdVhGb0hOb29LVU9hdEZldgoyelpxUXNuS3RuQzc3 | ||
aWVTNS8rQXcwM3IKLS0tIFpVVmUwZU9FT29KMlp0cEwzNGlucmZJNWJaNC9xZjhF | ||
U1k3NlRmMjhvNlkKIbFPmweTyrWtVQd8NjTK6tLCMQN8VHWyIauQq8tcKfpZeTvR | ||
P1F0aSAm3US6xpOoZ+/26rQvjygS9Yp8f+QpsWMgWNr27HUFfQmMTr8wdGwnX+QZ | ||
RJPOaB8E7OON/IquyY4cr8c+8zN7Uy6uvePae5sy/4HaAZp4o7fePg4wfOesEV/9 | ||
pGVFhah4nZulZgMY0UM43eIbPM4+66HxTUuZG6euxLt/yAT07m8W+fhiNfNZGMLy | ||
YQFRMig5qlvkJklJZja9uJXDcHPRONl/AgKmCe3/mlN5D5e+7Z00bwpLsp0yi0ea | ||
xNP7H/62w1NpNgmN2LotiKEXfhE+5HiX3+jRKp/UMH8D4DTyBrDo6ntPx3volPAD | ||
U2PYggHrF8gG9rfLYj3g6PC7RJbM5jH8ig9UoBciXCBF4MtRozaVwxey/0sMadoU | ||
TLkRvGNb01TJ3kQ1eDHy+1ZBmopECidA/ixVZvB4rWf8bC2BzyF4XWlDLcb8+hxR | ||
QdvQeEYBKE09bbYrP3ucVfBICasl9Me9CCnoeGTtLTna2QsSq+7BwUpH3/9DUozq | ||
/ICBfBmOQiKqYiU/RbqVPAm5LRXMPF4= | ||
-----END AGE ENCRYPTED FILE----- |
21 changes: 10 additions & 11 deletions
21
src/nixos/machines/mracek/secrets/mracek-disks-password.age
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
-----BEGIN AGE ENCRYPTED FILE----- | ||
YWdlLWVuY3J5cHRpb24ub3JnL3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UhidWlV | ||
LzUxTEVMTEl0WW5jcDk0Qkgwby9WMnFXanA1NVpzQXNTNXE4dApqbkR5WlFudFhk | ||
bU4vQTdXZWdMNnJ3ZVhvRjFMTm5yeHlMZjJCTHBiLzlZZ2xlbVAvb2cKLS0tIHpz | ||
R3NrN2VXZ1Fjb3VmNzNCMVBKUHZDT0w5MnNRMDlxVFlReUZveVoxb3cKryGals6t | ||
gr4PEetUKI4aj/i+1gvIsJklTfO7zoXUm9DaR1b7UDZd | ||
-----END AGE ENCRYPTED FILE----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,26 @@ | ||
-----BEGIN AGE ENCRYPTED FILE----- | ||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IHNzaC1lZDI1NTE5IHdlK3M2dyBjRWV6 | ||
ZjgzQkQ5OWJCQkR4UEFDWHNsZ2pQZU5PVmZrUmZLZk5hc3N3WkFvCk94UXBVeXZu | ||
TGF0L24vb2lRcVMxOGMvWURYVFpMcTU1bEgzU2gxc0VtZDgKLT4gc3NoLWVkMjU1 | ||
MTkgcm9BdXJnIDNXZTRlcGpNbUdodTZzeS8zeXVhNnRWbWh4bkxTaVpoOTN6Ylhr | ||
eEZxMWcKZTVEZldBSTFuS2xPNG40eUdMcHRGTzg3Y0JqR0grazNQakxoeHBvZ3Jl | ||
MAotPiBzc2gtZWQyNTUxOSByVzhDR2cgRlIxZ3FhcTRLZ3hNZ2tJWlFweGpzTm9m | ||
bjRxR1Y5Z0lsV0s3NjFBc2tHTQoyRGJEM0p1UTdzNlZQZ1FENUF2a09mMGhNVGxB | ||
QnBvQnVzWU53ZEh5N1FzCi0+IHNzaC1lZDI1NTE5IFNLdy96dyAyR0hBazFxWEMy | ||
aW5VaHZzRy9zVXp0UDA3M2ZuS01QVHJob093dCtHNUNvCjRTdmhMNjM3UkR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