Compare commits
No commits in common. "57d42ee3c1f70f261018abfefd8f9b0d1f15dd1d" and "63d45da9ffa1fc651977d0534214059badb512ee" have entirely different histories.
57d42ee3c1
...
63d45da9ff
4 changed files with 0 additions and 50 deletions
|
@ -12,8 +12,6 @@ in {
|
||||||
];
|
];
|
||||||
|
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
||||||
|
|
||||||
system.stateVersion = lib.mkDefault "23.11";
|
system.stateVersion = lib.mkDefault "23.11";
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,8 +48,6 @@
|
||||||
|
|
||||||
mosh.enable = true;
|
mosh.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
security.enable = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
time.timeZone = "America/Los_Angeles";
|
time.timeZone = "America/Los_Angeles";
|
||||||
|
|
|
@ -1,37 +0,0 @@
|
||||||
{ config, lib, options, pkgs, ... }:
|
|
||||||
|
|
||||||
with lib;
|
|
||||||
let
|
|
||||||
cfg = config.modules.security;
|
|
||||||
in {
|
|
||||||
options.modules.security = {
|
|
||||||
enable = mkOption {
|
|
||||||
type = types.bool;
|
|
||||||
default = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
security.rtkit.enable = true;
|
|
||||||
|
|
||||||
boot.kernel.sysctl = {
|
|
||||||
"kernel.sysrq" = 0;
|
|
||||||
|
|
||||||
"net.ipv4.conf.all.accept_source_code" = 0;
|
|
||||||
"net.ipv6.conf.all.accept_source_code" = 0;
|
|
||||||
"net.ipv4.conf.default.send_redirects" = 0;
|
|
||||||
"net.ipv4.conf.all.send_redirects" = 0;
|
|
||||||
"net.ipv4.conf.default.accept_redirects" = 0;
|
|
||||||
"net.ipv4.conf.all.accept_redirects" = 0;
|
|
||||||
"net.ipv6.conf.default.accept_redirects" = 0;
|
|
||||||
"net.ipv6.conf.all.accept_redirects" = 0;
|
|
||||||
"net.ipv4.conf.default.secure_redirects" = 0;
|
|
||||||
"net.ipv4.conf.all.secure_redirects" = 0;
|
|
||||||
"net.ipv4.tcp_syncookies" = 1;
|
|
||||||
"net.ipv4.tcp_rfc1337" = 1;
|
|
||||||
"net.ipv4.tcp_fastopen" = 3;
|
|
||||||
"net.ipv4.tcp_conjestion_control" = "bbr";
|
|
||||||
"net.core.default_qdisc" = "cake";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -14,15 +14,6 @@ _Commands here will assume you are currently in the directory of the dotfiles._
|
||||||
```sh
|
```sh
|
||||||
sudo nixos-rebuild switch --flake ".#server"
|
sudo nixos-rebuild switch --flake ".#server"
|
||||||
```
|
```
|
||||||
- To update the system:
|
|
||||||
```sh
|
|
||||||
sudo nixos-rebuild switch --upgrade --flake ".#server"
|
|
||||||
```
|
|
||||||
- To test the system:
|
|
||||||
```sh
|
|
||||||
nix flake check
|
|
||||||
```
|
|
||||||
|
|
||||||
## Permissions
|
## Permissions
|
||||||
|
|
||||||
_Commands here will assume you are currently in the directory of the dotfiles._
|
_Commands here will assume you are currently in the directory of the dotfiles._
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue