aboutsummaryrefslogtreecommitdiff
path: root/profiles/server.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-07-21 17:57:36 -0700
committerFranck Cuny <franck@fcuny.net>2025-07-21 17:57:36 -0700
commit5484afc2ce90ab7d2d33d1a9e822d497f44c4e5d (patch)
tree9f8d541e57956e7639b12801375ad91693a95b2c /profiles/server.nix
parentmove all profiles, modules, and flakes to top-level (diff)
downloadinfra-5484afc2ce90ab7d2d33d1a9e822d497f44c4e5d.tar.gz
keep organizing into modules and profiles
Diffstat (limited to 'profiles/server.nix')
-rw-r--r--profiles/server.nix35
1 files changed, 1 insertions, 34 deletions
diff --git a/profiles/server.nix b/profiles/server.nix
index 1588314..3bcd529 100644
--- a/profiles/server.nix
+++ b/profiles/server.nix
@@ -7,41 +7,15 @@
{
imports = [
- ./nix.nix
+ ./default.nix
];
- time.timeZone = "America/Los_Angeles";
-
- # Don't require password for sudo
- security.sudo.wheelNeedsPassword = false;
-
# Virtualization settings
virtualisation.docker.enable = true;
- # Select internationalisation properties.
- i18n = {
- defaultLocale = "en_US.UTF-8";
- };
-
boot.loader.systemd-boot.enable = true;
boot.kernelPackages = pkgs.linuxPackages_latest;
- environment.systemPackages = with pkgs; [
- curl
- fd
- fish
- git
- htop
- jq
- mtr
- pciutils
- powertop
- ripgrep
- tcpdump
- traceroute
- vim
- ];
-
boot.kernel.sysctl = {
"net.ipv4.tcp_fastopen" = 3;
"net.ipv4.tcp_tw_reuse" = 1;
@@ -56,10 +30,6 @@
useNetworkd = lib.mkDefault true;
};
- # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
- # (the default) this is the recommended approach. When using systemd-networkd it's
- # still possible to use this option, but it's recommended to use it in conjunction
- # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# Default to systemd-networkd usage.
@@ -79,7 +49,4 @@
"8.8.8.8#dns.google"
"1.0.0.1#cloudflare-dns.com"
];
-
- ## disable that slow "building man-cache" step
- documentation.man.generateCaches = lib.mkForce false;
}