diff options
| author | Franck Cuny <franck@fcuny.net> | 2025-08-12 10:08:40 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2025-08-12 10:08:40 -0700 |
| commit | df787c739c6bde9c369d8f95a65126d387103f8e (patch) | |
| tree | 2d2f1c07f230644c7b7abcbaaa9ea9670299ab88 | |
| parent | use podman for containers on nixos (diff) | |
| download | infra-df787c739c6bde9c369d8f95a65126d387103f8e.tar.gz | |
add a profile for boot
| -rw-r--r-- | machines/nixos/x86_64-linux/do-rproxy/default.nix | 1 | ||||
| -rw-r--r-- | machines/nixos/x86_64-linux/synology-vm/default.nix | 1 | ||||
| -rw-r--r-- | profiles/core/boot.nix | 9 | ||||
| -rw-r--r-- | profiles/server.nix | 8 |
4 files changed, 11 insertions, 8 deletions
diff --git a/machines/nixos/x86_64-linux/do-rproxy/default.nix b/machines/nixos/x86_64-linux/do-rproxy/default.nix index d6b357e..7888843 100644 --- a/machines/nixos/x86_64-linux/do-rproxy/default.nix +++ b/machines/nixos/x86_64-linux/do-rproxy/default.nix @@ -23,6 +23,7 @@ "${self}/profiles/admin-user/user.nix" "${self}/profiles/admin-user/home-manager.nix" "${self}/profiles/server.nix" + "${self}/profiles/core/boot.nix" "${self}/profiles/core/locale.nix" "${self}/profiles/core/ssh.nix" "${self}/profiles/core/tools.nix" diff --git a/machines/nixos/x86_64-linux/synology-vm/default.nix b/machines/nixos/x86_64-linux/synology-vm/default.nix index 7309285..820f1a7 100644 --- a/machines/nixos/x86_64-linux/synology-vm/default.nix +++ b/machines/nixos/x86_64-linux/synology-vm/default.nix @@ -37,6 +37,7 @@ "${self}/profiles/hardware/synology.nix" "${self}/profiles/server.nix" "${self}/profiles/git-server.nix" + "${self}/profiles/core/boot.nix" "${self}/profiles/core/locale.nix" "${self}/profiles/core/ssh.nix" "${self}/profiles/core/tools.nix" diff --git a/profiles/core/boot.nix b/profiles/core/boot.nix new file mode 100644 index 0000000..42bbb02 --- /dev/null +++ b/profiles/core/boot.nix @@ -0,0 +1,9 @@ +{ pkgs, ... }: +{ + boot.kernelPackages = pkgs.linuxPackages_latest; + + boot.kernel.sysctl = { + "net.ipv4.tcp_fastopen" = 3; + "net.ipv4.tcp_tw_reuse" = 1; + }; +} diff --git a/profiles/server.nix b/profiles/server.nix index 6fe6f22..82a20c7 100644 --- a/profiles/server.nix +++ b/profiles/server.nix @@ -1,5 +1,4 @@ { - pkgs, ... }: { @@ -8,13 +7,6 @@ ./default.nix ]; - boot.kernelPackages = pkgs.linuxPackages_latest; - - boot.kernel.sysctl = { - "net.ipv4.tcp_fastopen" = 3; - "net.ipv4.tcp_tw_reuse" = 1; - }; - networking = { firewall = { enable = false; |
